Forum Moderators: phranque

Message Too Old, No Replies

Cookies Getting Dropped after ReDirect

         

ARBlue79

11:47 am on Oct 2, 2012 (gmt 0)

10+ Year Member



I am trying to redirect from one Apache server to another using the following command in the httpd.conf:

Redirect / [<ip...] address>//Login.htm

There are cookies being set prior to the redirection that I want to persist after the redirection, but they are not included. This is breaking my header authentication from the Login.htm page.

Is this expected behaviour? Is there a better way to accomplish this while maintaining my session through the redirect? Thanks!

phranque

1:24 pm on Oct 2, 2012 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld, ARBlue79!

the cookies can't be shared.
a cookie is based on the domain attribute (hostname or IP).

HTTP State Management Mechanism:
http://www.ietf.org/rfc/rfc2109.txt [ietf.org]

lucy24

9:03 pm on Oct 2, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



:: grasping at straws ::

Could you fake-up something with a query string? Read pre-redirect cookies, write into query, execute redirect, write query into new cookies, dump query?

Got a nasty idea Apache can only read cookies, not write them.