| | |
Problem with cookies in ASP
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jan 2005
Posts: 8
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Sep 2004
Posts: 89
Reputation:
Solved Threads: 1
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
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.
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 ::
Lafinboy Productions
:: Website Design :: Website Development ::
![]() |
Similar Threads
- Problem with Provider Management in ASP.NET 2.0 (ASP.NET)
- strange problem - cookies on desktop (Windows NT / 2000 / XP)
- Problem with XIRR calculation with ASP and EXCEL (ASP)
- problem in javascript coding in asp page (ASP)
- ASP.net Cookies (Community Introductions)
- Problem with cdonts mails in asp (ASP)
- Porting asp to asp.NET (with fileup) (ASP.NET)
Other Threads in the ASP Forum
- Previous Thread: create a weekly and monthly report
- Next Thread: asp mysql
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection diagnostics dreamweaver excel fso iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit webserver windows7





