Advertisement

06.13.2008 at 11:28AM PDT, ID: 23483674
[x]
Attachment Details

Detect is session cookies enabled

Asked by Nugs in C# Programming Language, JavaScript, Programming for ASP.NET

Tags: C#

I have a problem. My site relies heavily on asp.net session cookies, it holds the users session in the database and maintains all sorts of data based on this session. the problem arises when the user has cookies disabled. For these users, each postback creates and new session in my database. In tern they loose any session data that i might hold as they browser the site because new sessions are created..

I now have a number of records being created for these user. No good...

I have been looking for some code that will allow me to detect if cookies are enabled or disabled via C# in the session_start method. I have found none that can do this WITHOUT a postback!

If anyone has any suggestions on how i can detect this without posting back or by using javascript maybe... please help me... I want to redirect these used to a page that asks them to turn cookie on...

NugsStart Free Trial
[+][-]06.13.2008 at 11:34AM PDT, ID: 21781573

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 11:35AM PDT, ID: 21781591

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 11:36AM PDT, ID: 21781594

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 11:45AM PDT, ID: 21781661

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 11:50AM PDT, ID: 21781708

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06.13.2008 at 12:06PM PDT, ID: 21781849

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 12:13PM PDT, ID: 21781903

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 12:13PM PDT, ID: 21781904

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 12:17PM PDT, ID: 21781937

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 12:24PM PDT, ID: 21782005

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C# Programming Language, JavaScript, Programming for ASP.NET
Tags: C#
Sign Up Now!
Solution Provided By: MuhammadAdil
Participating Experts: 4
Solution Grade: B
 
 
[+][-]06.13.2008 at 12:45PM PDT, ID: 21782168

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 06:13PM PDT, ID: 21783655

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628