|
-
Mar 18th, 2002, 01:01 PM
#1
Thread Starter
Hyperactive Member
Session vs Cookies
Here is my problem in a nutshell. I'm am trying to make my site work with both users who allow cookies and those who don't. When I go to check for cookies, I try to pass a session variable back to my script. However those that don't have cookies for some reason don't get the session variable either. Any ideas why this happens?
-
Mar 18th, 2002, 03:00 PM
#2
Frenzied Member
cuz there's 2 diferent kind of cookies!
look in your security setting of your browser!
-
Mar 18th, 2002, 03:04 PM
#3
Re: Session vs Cookies
Originally posted by DKCK
Here is my problem in a nutshell. I'm am trying to make my site work with both users who allow cookies and those who don't. When I go to check for cookies, I try to pass a session variable back to my script. However those that don't have cookies for some reason don't get the session variable either. Any ideas why this happens?
Thats because Session are implemented using cookies, the session id is passed at every request in a cookie so if one has cookie disabled then you wont be able to use session object.
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Mar 19th, 2002, 10:45 AM
#4
Frenzied Member
The only way to 100% cover those paranoid users that totally disable ciookies, is to pass the values from page to page in hidden input tags.
That is why many developers simply put disclaimers on their apps that cookies must be enabled.
This problem is overcome in ASP.Net because if you start a session, the session id is passed in the URL line/form data so that IIS can always identify a user.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Mar 19th, 2002, 11:52 AM
#5
Black Cat
This problem is overcome in ASP.Net because if you start a session, the session id is passed in the URL line/form data so that IIS can always identify a user.
I believe there's also an ISAPI filter in one of the IIS resource kits that'll do this.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|