troubleshooting Question

Linux SESSION reset constantly

Avatar of Andrej Pirman
Andrej PirmanFlag for Slovenia asked on
LinuxPHPApache Web Server
19 Comments2 Solutions746 ViewsLast Modified:

I did some mess with one of my Ubuntu 12.04 LTS servers by upgrading too much (obviously). In one night I installed (with having backup, of course):
- MySQL from 5.1 to 5.5
- PHP minor version upgrade
- memcache & memcached
- mod_pagespeed

From there on I have problems with SERVER SESSIONS.
PHP does not recognise session ID and creates new Session for each click, POST or GET on every page. So, for example, trying to login into Joomla is not possible. Also forums, Wordpress....any login is not possible due to this SESSION problem.

I also tried to set
$session_store = "database"
but sessions get reset and created over and over again also in database.

So, it is NOT a problem of:
- user or browser
- session store path

But it IS A PROBLEM most obviously in a mechanism, how PHP identifies visitor as existing visitor, so he/she can access existing server-side SESSION. As PHP does not properly identify visitor, he treats each click like a new visitor and creates session for him.

I already removed all accelerators, caches and mod_pagespeed.
No errors in apache logs.

Any idea what could be wrong?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 19 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 19 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros