Jump to content

Why does this login fail somtimes?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
welton122

welton122

    Learning Programmer

  • Members
  • PipPipPip
  • 76 posts
hi all,

ok i have created a site (click here to go to the site) whereby it has a login system in place. The login system uses sessions to determine weather the users is logged in or not when each page is loaded. It also uses these sessions to get information from the database about that user. My problem is this, the login work fines everywhere (and i mean everywhere) apart from my college. The problem is that when two users login at my college, they seem to swap over accounts when navigating through the site?????

Basically im just after any ideas of how this could b happening as each uses is given a session with a different number. (the number corresponds to which account it is).

Many Thanks,
J

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
What keys do you use to find the right user? user id? ip? session id?
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#3
welton122

welton122

    Learning Programmer

  • Members
  • PipPipPip
  • 76 posts
i use a userid which matches the one in the database (the session is given a userid which then corresponds to the one in the database. This is how each page knows what to display)

#4
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
And I assume that your friends login using different accounts when the pages mismatch as you described?
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#5
bbqroast

bbqroast

    Codecall Addict

  • Members
  • PipPipPipPipPipPipPip
  • 554 posts
Could be a proxy tricking the server...
But it uses cookies so the proxy would have to be ethier cookie stealing or programmed so badly it mucks up who is who....
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).