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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:17:32+00:00 2026-06-10T00:17:32+00:00

I have been working on converting my websites session information over from flatfiles to

  • 0

I have been working on converting my websites session information over from flatfiles to database sessions for a variety of reasons, the main reason being I use the same database of users for both the Administration panel and user panels.

The administration panel is set on a subdomain of our main domain, i.e;

domain.com
staff.domain.com

Both of the domains use the exact same session handler, however when it comes to actually creating the session on the sub-domain and normal domain, two different session_ids are created for the same computer / person.

Is this behavior normal? Is there a way I can make it so logging in the User Panel will also allow me to use the staff panel without logging in as the session is already created?

Thank you

  • 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-10T00:17:33+00:00Added an answer on June 10, 2026 at 12:17 am

    I assume you’re using cookies to transport the session id. The cookie will not get passed to the other part of the website because it is on a different (sub) domain. Thefore PHP generates a new session id.

    However, if you manage that both parts have the same session-name and you manage to pass the session-id, then everything should just work.

    You can for example create a special script that accepts the session id as parameter and you then take over that session data.

    But be careful here so that this can not be easily misused to steal sessions. So probably using a cookie that works for both sites might be a more simple solution.

    • session.use_only_cookies
    • session.cookie_domainDocs
    • session_set_cookie_paramsDocs
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on a document conversion feature for converting a docx file
I have been working on converting graphics and layout heavy books (created in Adobe
Have been working on this question for a couple hours and have come close
I have been working with SQL Server as a Developer a while. One thing
I have been working on a large java application. It is quite parallel, and
I have been working on this app for at least 3-4 months and just
I have been working on a project in C# (.net4). Project pretty much allows
I have been working on a project on and off, but I haven't touched
I have been working with Zend for a few months now and am at
I have been working on a huge ETL project with 150+ tables and during

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.