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

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.

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.