Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to set cookies when redirectig ?

Status
Not open for further replies.

kilian

Technical User
Nov 7, 2003
1
US
Hi,

can someone tell me if it is possible to set a cookie to a client when the webserver (apache) redirects the client ?
The server sends the http header even if it redircets the client so theoretically the server must be able to set a cookie, or isn't it like this?

Thx for help
Kilian
 
You mean via mod_rewrite? I don't think that functionality is there.

One thing to try: Have Apache redirect to a CGI script that outputs the cookie header and another redirect header. When the browser arrives at the destination page, the cookie should be there. ______________________________________________________________________
TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top