943,621 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 4388
  • ASP RSS
Nov 10th, 2005
0

Problem with cookies in ASP

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rooparaj is offline Offline
8 posts
since Jan 2005
Nov 10th, 2005
0

Re: Problem with cookies in ASP

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.
Reputation Points: 9
Solved Threads: 1
Junior Poster in Training
msaqib is offline Offline
91 posts
since Sep 2004
Nov 15th, 2005
0

Re: Problem with cookies in ASP

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
Reputation Points: 10
Solved Threads: 2
Junior Poster
william_stam is offline Offline
131 posts
since Mar 2005
Nov 16th, 2005
0

Re: Problem with cookies in ASP

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.
Reputation Points: 16
Solved Threads: 7
Junior Poster
Lafinboy is offline Offline
166 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: create a weekly and monthly report
Next Thread in ASP Forum Timeline: asp mysql





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC