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 1046411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:08:31+00:00 2026-05-16T16:08:31+00:00

I created 2 separate page that uses cookies for auto login. But if I

  • 0

I created 2 separate page that uses cookies for auto login. But if I login both of them and if i refresh one of the page , I can see that site recognize the other cookie. Like if I print in both site user name to screen , after refresh I see the same user name in both site. I am running 2 sites in my localhost. And I did not specify location for cookie.

  • 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-05-16T16:08:32+00:00Added an answer on May 16, 2026 at 4:08 pm

    I guess you’re using the same key for both pages.

    Cookies are stored by browsers per server or domain. For different paths, cookies with same names can have different values.

    In your case, if you’re using the same key for both login pages then in every request to your local web server, the value of that cookie will be the one which was last set by one of the pages if you omit path and domain when cookie is created.

    You can use different names for the cookies to solve your problem or different paths for your cookies.

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

Sidebar

Related Questions

I have a Rails site that uses Devise for authentication. I have one page
Some time back, I created two separate SharePoint projects in VS 2008; one using
I created a page in ASP that loads dynamic content with code similar to
I currently have a tab on my page (created with Jquery UI) that when
I have created a dropdown list, which is working well in separate page: however,
I'm using PHP and MySQL. I have a page that displays meetings created by
I have a WordPress blog on my website. But I've created my own page
Given a page that uses Backbone.js to have a Collection tied to a View
I created a login page in GWT using widgets and RPC. After succesful login,
I've written a very small html page for IE that uses client-side PerlScript. In

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.