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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session ID different b/w 2 virt servers

Status
Not open for further replies.

thedaver

IS-IT--Management
Jul 12, 2001
2,741
US
In hindsight this is obvious, but now I'm in a pinch...

I use to process and store some really fun stuff into a session data set stored in MySql (instead of /tmp). The client browser gets a session id for that login on the secured server of (eg.) '1234567890A'. All session functions work fine in test on this host.

My app logic is to redirect authenticated client logins to However, when they arrive at that "other" location, their session ID is different (eg.) 'A0987644444'. Because the session is different, none of my stored session data from the "other" host is available to the new session.

Surely it's really common to securely authenticate and then hand off the session to a non-secured host (and back again?).

What can I do?! Hopefully I can avoid reliance on cookies.
THANKS!
 
This is hipotetical. I need to do that too. I have not tried, but what you can try is to set a cookie in the first page with the domain being the other one, and when you reach the second page you red the cookie. Hippotetical can work. If works, let me know. I'monly going to try this tomorrow morning. Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Anikin, great idea. I'm also going to try another method of actually embedding the SID into a POST/GET just to see what happens. This isn't really my favorite approach since it messes up security (possibly) and search engine friendliness (definitely).

Let's "talk" tomorrow.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top