Page 1 of 1

Eeek. Help with propagating a SESSION ID

Posted: Mon Aug 01, 2005 6:41 pm
by MicahCarrick
I have a strange problem. I have a site in which I need to be able to propogate my session ID by some other means only if the user does not have cookies enabled. I can test for cookies and what not, however, I have some limitations which have me stumped...

- I don't have access to all the links to manually put in the PHPSESSID=SID in each one.
- If I change the session.use_trans_sid then it will ALWAYS use the GET method to propagate... right?

Is there some way I can store the session ID in a database and then pull it back up and reinstate the session using that?

Micah

Re: Eeek. Help with propagating a SESSION ID

Posted: Mon Aug 01, 2005 7:29 pm
by timvw
MicahCarrick wrote: - I don't have access to all the links to manually put in the PHPSESSID=SID in each one.
Yes, you have: http://www.php.net/output_add_rewrite_var
MicahCarrick wrote: - If I change the session.use_trans_sid then it will ALWAYS use the GET method to propagate... right?
Wrong.

url_rewriter.tags specifies which HTML tags are rewritten to include session id if transparent sid support is enabled. Defaults to a=href,area=href,frame=src,input=src,form=fakeentry,fieldset=

MicahCarrick wrote: Is there some way I can store the session ID in a database and then pull it back up and reinstate the session using that?
http://www.php.net/session_set_save_handler

Posted: Mon Aug 01, 2005 9:05 pm
by Ambush Commander
Of course, if they're in HTML files, that's a different matter. Try htaccess.