Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8005643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:17:15+00:00 2026-06-04T17:17:15+00:00

I am setting a session variable once user login (Session[loginuser]) and redirecting to another

  • 0

I am setting a session variable once user login (Session[“loginuser”]) and redirecting to another page using Response.Redirect. I am testing this in two seperate instance of Firefox browser. Used two different login’s. Login works fine, but after login if I click any link on browser window 1 and click the any other link on browser window 2, window 2 is showing username of window 1 !!!

Don’t know what is the problem.. can somebody help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T17:17:16+00:00Added an answer on June 4, 2026 at 5:17 pm

    Sessions are kept on a per browser basis using cookies. This means that when you are using the same browser on the same computer they are going to be shared. This may or may not be a problem, as it will not affect users unless being able to log in to multiple accounts on the same computer is necessary.

    This artcile will tell you about how to turn on cookie-less sessions which will solve your problem: http://msdn.microsoft.com/en-us/library/ms972429.aspx

    Essential what you should do is go to your web.config and find the line that looks like below and change cookieless to true.

    <configuration>
      <sessionstate 
      mode="inproc"
      cookieless="true" 
      timeout="20" 
      sqlconnectionstring="data source=127.0.0.1;user id=<user id>;password=<password>"
      server="127.0.0.1" 
      port="42424" 
     />
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im setting a session variable on hypothetical page number 1. The user then clicks
I'm setting a Session variable with an ajax call. I've tried both by using
What's the best practice for redirecting the user, using Devise, back to the page
I am getting problem while setting up Session cookie using jersey. is there any
When setting session variables using cookie store in Rails 2, I can see the
I am setting a session variable inside a function studNameDetails1() while I am trying
In MySQL help it says that Setting a session variable requires no special privilege
Building a simple login page. If the user types in a password and password
I have 2 controllers, I am setting a session variable in one controller and
In an ExpressionEngine template, I'm setting a PHP session variable in a javascript file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.