Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ASP: Session Variables & Cookies

Posted on 1998-05-11
1
Medium Priority
?
218 Views
Last Modified: 2013-12-25
With Microsoft ASP, it is easy to create user-specific variables through the use of session variables. However, it would seem that the way IIS associates page requests with a particular browser is through the use of a cookie (ASPSESSIONID, I think it's called). This is fine and easy, but can session variables be used when a browser is set to refuse cookies? I don't see how this can be true. If so, what's the best way of detecting this condition and doing something about it? I've read the Microsoft Press book on ASP, but it skims over this area completely.
0
Comment
Question by:pob
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 28

Accepted Solution

by:
sybe earned 300 total points
ID: 1855951
If the user refuses the ASP-cookie, Session variables will not work.
You can ask for the cookie by Request.Servervariables("HTTP_COOKIE ")

There is not much you can do about it. You'll just have to think of doing it without sessionvariables, or warn the user that without accepting cookie, he won't get the full advantage of the site.

One way i can think of that is similar to Sessionvariables, is to       check in each page the users IP-number, put it in a storage (database), and add fields with the values of the sessionvariables you would have used. Of course this will cost a lot of performance. And you'll have to find a way to empty the database.




0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question