Jump to content

Recommended Posts

Posted

Hey Guys,

I'm working on a new site, and one annoyance I'm having is that the session doesn't stay alive i.e. i don't stay logged on. On my main site all works fine and I never have to log in, but here I think after half an hour or so it kicks me out again. Specially annoying if I do some admin-work and when I submit it doesn't actually submit :(

Anyone can shed some light on this?

Posted

Hey Guys,

I'm working on a new site, and one annoyance I'm having is that the session doesn't stay alive i.e. i don't stay logged on. On my main site all works fine and I never have to log in, but here I think after half an hour or so it kicks me out again. Specially annoying if I do some admin-work and when I submit it doesn't actually submit :(

Anyone can shed some light on this?

The time that you provide for your member to get online, you can adjust the file Local.config.php

lines 59 and 60

# The StatsData::UserOnline() function - how many minutes to check
Config::Set('USERS_ONLINE_TIME', 20);

20 = 20 minutes

You can change these values ​​to what they find convenient

Posted

I think that's rather how often the system checks if a user is still online

Indeed if I look at the referenced function, i see it returns this:

SELECT p.*

FROM ".TABLE_PREFIX."pilots p, ".TABLE_PREFIX."sessions s

WHERE s.pilotid = p.pilotid

AND DATE_SUB(NOW(), INTERVAL {$minutes} MINUTE) <= s.`logintime

On both my sites I have this value set to 20, however on one site it never times out and on the other all the time.

  • 3 months later...
Posted

Sorry to bring this up but We are also having this problem at www.cathaypacificva.com . Once you login even if you hit remember it will always log you out after being inactive for 20-30 Mins. Any Ideas?

Thanks,

Callum

  • 2 weeks later...
Posted

We have the same problem.....

When we log in and then brows the web and return to page we are logged out and then once we sign in we get an error saying you are already logged in.....any fix? tried the top fix with a minutes thing but it isn't that :(

Posted

Hi,

recently i changed my phpvms skin and have the "same" problem, my problem was the "remember me" on login code.

If i close the browser the login was lost, then i fix the "remember" part the login keeps alive all the time.

Hope that helps :)

  • 3 months later...
  • 3 weeks later...
Posted

Hate to keep bumping this topic, but.....nothing on this thread helped my predicament. Can someone stear me in the right direction of where I should be looking next. Sorry to be a bother with this :(

  • Moderators
Posted

I think that this problem happens because you are not using index.php extention on your welsite's url. For example, if i browse the phpvms website using www.mydomain.com , probably the auto log in won't work but if i use www.mydomaim.com/index.php the i am automatically logged in.

I don't know why does it happen so that's why i am trying to use index.php extention whenever i browse my website. ;)

Posted

But it does load the index.php file when it goes to my site. And keep in mind, I have NOT had this problem since about 3 months ago or so. Before that, it never happenned?!

Is it possible to have something wrong with my index.php I wonder?! Again, I can't seem to track this one down. :(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...