FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » How to prevent session expiry
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
How to prevent session expiry [message #35899] Mon, 19 February 2007 13:20 Go to next message
cho_mik is currently offline  cho_mik   Switzerland
Messages: 3
Registered: February 2007
Location: Poland
Karma: 0
Junior Member
Hi!

I want a FUDForum to be a part of bigger site. I know how to log user in using one (common) log-in procedure. But if user spends a lot of time in other parts of my site, he can be automatically logged out in FUDforum part.

Is there a keep_session_alive function, that can be call by me in other pages to prevent session expiry?

Marcin
--
www.wyprawa.net
Re: How to prevent session expiry [message #35904 is a reply to message #35899] Mon, 19 February 2007 23:46 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You can adjust the session's lifetime in the forum's admin control panel under the session/cookie sub-heading.

FUDforum Core Developer
Re: How to prevent session expiry [message #35908 is a reply to message #35904] Tue, 20 February 2007 07:53 Go to previous messageGo to next message
cho_mik is currently offline  cho_mik   Switzerland
Messages: 3
Registered: February 2007
Location: Poland
Karma: 0
Junior Member
You are right but this is not I asked about.

I don't know how internal sessions work, but I guess extending session time i.e. up to 1 hour would consume same resources (unnecessary - must say).

Better solution is to use special function in other pages of my site. I have found this function:

function ses_update_status($ses_id, $str=null, $forum_id=0, $ret='');

Is it a good way? If yes, how to use it?

Marcin
Re: How to prevent session expiry [message #35938 is a reply to message #35908] Thu, 22 February 2007 00:32 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Extending the session time won't really eat resources all that much, unless you have millions of users you won't notice it.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Attached foto number
Next Topic: Mass Approval and Moving of Messages with SQL?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 04:44:42 GMT 2024

Total time taken to generate the page: 0.02491 seconds