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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:25:18+00:00 2026-05-17T01:25:18+00:00

I have a Windows server 2008 with apache2. The server has 2 discs and

  • 0

I have a Windows server 2008 with apache2. The server has 2 discs and I run an apache instance on both. The first runs as a service the second in the commandline. They both use an exact copy of an identical webroot in their own htdocs folder. Also they both use the same PHP install that is located on the first disc (Program Files (x86)). My application runs over SSL and uses PHP and MySQL.

The webserver that runs as a service runs my application fine and lets me login and has my session data ready at all times. The second server however lets me run my login script, has session data while running the script but loses that session data after a redirect to another page inside the same webroot.

The problem on the second webserver is similar to this question with the exception that I have session_start() on every page.

My login script works like this:

  • User requests a page
  • If the user is not authenticated, he is thrown back to the login page
  • If the user is authenticated, he gets an $_SESSION[“auth”] with his profile data
  • Then when the user is browsing the main page or other pages that need auth, they just check if the $_SESSION[“auth”] is set.

Any tips on how to solve this?

EDIT: A small clarification. I do have a session ID on each page. That id does not change when I get redirected. I do NOT have any data in the $_SESSION variable on the page I redirect to.

  • 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-17T01:25:19+00:00Added an answer on May 17, 2026 at 1:25 am

    Look at the permissions of the php session directory where the files for the session are being stored. If php doesn’t have the rights to write, create and change files you won’t be able to store anything in your $_SESSION var.

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

Sidebar

Related Questions

we have the following environment: a Windows 2008 Server with Apache 2.2.14 and SVN
I have a system with windows server 2008 , Apache httpd 2.2 and trac
I have next SVN repositories structure running Apache 2.2 under Windows Server 2008: http://example.com/svn/
I have a wordpress installation on an IIS7 Windows Server 2008 shared hosting service.
I have Windows Server 2008 R2 with IIS7 on it. I deployed WCF service
I am running PHP on a 64bit windows 2008 server. I have both ODBC
We have 2 physical servers, one the first one we have Windows Server 2008
I have a Windows server 2008 R2 64 bit with a VMware instance of
We have Windows Server 2008 as our Production server hosted in RackSpace environment. Following
I have a new WIndows Server 2008 R2 x64 DataCentre with Framework 3.5 SP1

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.