Re: PHP Session not persisting with only some users



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!
.



Relevant Pages

  • Re: Interesting error message
    ... reflection in effect that the program made. ... may be set to save it's settings on exit, so the problem may not go away by ... and had to kill my session and discard my reflections because it must have ... To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • Re: Buffers, sockets... argh!
    ... connectivity during a session. ... useful message I get from anything is if I try to run World of ... I also recently changed some settings in ... Azureus, but the problem persists even if I have not run Azureus that ...
    (microsoft.public.windowsxp.general)
  • Re: Can I use Data Caching without a Session?
    ... It may be true that creating a session is not what is causing the overhead. ... The ASPX page in the Iframe itself is rather large 67K to 150K depending on ... What is being sent is not just a few settings but also a comma delimited ... If that settings-page is a different page, you could use cookies to store ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Clients Being Locked out After Being Idle
    ... by default the profiles takes the setting off the server's settings. ... The connection has a preset username and password in the WYSE box for connecting the client to the server. ... There is no reason for the user to know the Windows username and password as the session is heavily locked down using Group Policies. ... My problem is after some time of being idle the client session gets locked out of thier account. ...
    (microsoft.public.windows.terminal_services)
  • Re: Finally which ORM tool?
    ... What kind of things would you be passing back and forth between your n-tier application server and client in an pure ADO.NET implementation of the server? ... using (Session session = InsertORMHere.NewSession()) ... I'm not sure if you're playing the devils advocate or if you're just generally hostile to change but it seems to me that what I'm suggesting is certainly an improvement over the existing frameworks which REQUIRE me to write the above workaround because they REQUIRE sessions, even though these are not required in order for these ORMs to do their work. ...
    (microsoft.public.dotnet.languages.csharp)

Loading