How do I pass the session ID in URL only when the user has cookies disabled ?
Hi,
I developed a custom page and I have a bit of a problem with users that have cookies disabled. When such users are visiting my custom page they get logged out automatically (because I am not passing the session ID variable to my custom page).
What is the best way to achieve this ? Should I look for the session ID in the URL practically check the GET input for the session ID and if I find it then passed it along ?
This kind of stuff must be done everywhere in VB. I mean, each page normally should check from where the session ID is coming then alter the URLs on the page itself accordingly. I mean, let's suppose that the page contains some links for some places on the forum.
When cookies are enabled, the links will look like this:
<a href=http://www.test.com/test1.php> Test1 </a>
<a href=http://www.test.com/test2.php> Test2 </a>
OTOH, when cookies are disabled, the links will look like this:
<a href=http://www.test.com/test1.php?s=dwef43r43drf43xsd4d43> Test1 </a>
<a href=http://www.test.com/test2.php?s=dwef43r43drf43xsd4d43> Test2 </a>
How do I do the same in my own code ?
Regards,
Razvan
|