Re: PHP Session not persisting with only some users
- From: sso <strongsilentone@xxxxxxxxx>
- Date: Thu, 30 Jul 2009 12:04:39 -0700 (PDT)
On Jul 29, 7:55 am, "C. (http://symcbean.blogspot.com/)"
<colin.mckin...@xxxxxxxxx> wrote:
On Jul 28, 3:23 pm, sso <strongsilent...@xxxxxxxxx> wrote:
I’m running out of steam here. I have tried everything suggested to
me (as far as I can tell) and I’m still having random problems.
2% or so of IE users can’t log in to my site. It appears that code
igniter isn’t setting their session data properly. I’m using the
simplelogin library.
They click login and they are redirected to the login page (if they
logged in, they would go to the same page then be redirected to the
members section).
I have clear cache headers in my script as well as meta tags in the
html.
anytime I redirect or load a view. I use ‘refresh’ anytime I redirect.
It seems like the page is reloading all the images and content on the
page, so presumably that is doing what it should.
On a problem computer I managed to get my hands on I observed the
following:
I’m able to set a cookie in the users browser (for the “Remember Me”
function).
It seems like it sets the “logged_in” userdata but it only lasts for 1
page load then is gone. What gets me is this only happens to a few
people. Can we ask all the IE users to get with the times? Not
really. Also, This time I have ensured my server clock is correct.
(this caused problems previously)
If I log in with bad credentials it comes back with the appropriate
error message as I’ve programmed it to do.
The security settings are set to medium in browsers (IE7 IE8). There
are other sites that they can log into (gmail, hotmail). They’re also
able to log into the “old site” which uses a passwd file without any
issues (this might have no bearing, but I thought it was worth
including)
Please offer any further suggestions you have,
Greatly appreciated. :)
This sounds like something hokey with the cookies you are dropping. If
you supply the request/response headers for the minimal session
necessary to replicate the error then maybe we'd be able to work out
what's going wrong.
The security settings are set to medium in browsers (IE7 IE8).
This is meaningless unless you're reporting a bug in Microsoft - in
which case we're not likely to be interested.
C.
The problem was I forgot to include session_start(). I'm using a
frame work and for some reason native PHP sessions work where the
frameworks are very particular about which computers they will work
on. And yes, I verified the security settings in the browser. Oh
well. It works now and my skin is saved.
Also I know I didn't post code, I was hoping there was something
obvious I was missing, and I didn't think this was the place to post
code from a framework anyway :)
Thanks!
.
- References:
- PHP Session not persisting with only some users
- From: sso
- Re: PHP Session not persisting with only some users
- From: C. (http://symcbean.blogspot.com/)
- PHP Session not persisting with only some users
- Prev by Date: WORK AT HOME - - MAKE $20 PER HOUR
- Next by Date: Re: stop for moment
- Previous by thread: Re: PHP Session not persisting with only some users
- Next by thread: phpmailer and utf-8
- Index(es):
Relevant Pages
|
Loading