Problem with cookies in ASP

Reply

Join Date: Jan 2005
Posts: 8
Reputation: rooparaj is an unknown quantity at this point 
Solved Threads: 0
rooparaj rooparaj is offline Offline
Newbie Poster

Problem with cookies in ASP

 
0
  #1
Nov 10th, 2005
hey in asp,if we use cookies n in IE if the cookies seting is blocked it wont show any cookie values.
So how can we avoid that
So if user want to work with that website means they have to changes in IE options Private security n there they have to choose Accept Cookies ...
Ok So i user want to use this website means he has to dooo alll these circus....
CAn we avoid it??????????

TO AVIOD THAT WE CAN USE APPLICATION VARIABLES BUT IF WE USE APP.VARIABLES. 1 USERS DATA WILL SHARE TO ANOTHER USER
tHATS THE PROBLEM
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 89
Reputation: msaqib is an unknown quantity at this point 
Solved Threads: 1
msaqib msaqib is offline Offline
Junior Poster in Training

Re: Problem with cookies in ASP

 
0
  #2
Nov 10th, 2005
You can use the session variables to store the user related information. That is the most simple way to store information baout a particular user.
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 131
Reputation: william_stam is an unknown quantity at this point 
Solved Threads: 2
william_stam's Avatar
william_stam william_stam is offline Offline
Junior Poster

Re: Problem with cookies in ASP

 
0
  #3
Nov 15th, 2005
use cookies and session vars.

dim saveinfo1
if request.cookie("testcookie")="" then
saveinfo1 = session("saveinfo1")
else
saveinfo1 = request.cookie("saveinfo1")
end if

bah, this way if the user has cookies blocked it uses the session (testcookies is a set cookie with any value) otherwise it uses the cookie
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 166
Reputation: Lafinboy is an unknown quantity at this point 
Solved Threads: 7
Lafinboy's Avatar
Lafinboy Lafinboy is offline Offline
Junior Poster

Re: Problem with cookies in ASP

 
0
  #4
Nov 16th, 2005
You will obviously (or maybe not) need to create the testcookie on a page previous to the one on which you test for it. No point in testing for a non-existent cookie, and you can't test on the same page that you create it on, well not without reloading the page.

As for a way around the problem - don't use cookies! If your site depends on cookies to work correctly then you need to inform your users very clearly of the fact, and you need to implement procedures to check that they can accept cookies before they run off and break your site.
If I've been a help please confirm by clicking the Add to Lafinboy's Reputation link in the header of this reply.

Lafinboy Productions
:: Website Design :: Website Development ::

Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC