Cookie timeout with Authentication set up...

A place for users and developers of the Xataface to discuss and receive support.

Postby Aoirthoir » Fri Dec 01, 2006 12:05 pm

Going to look into the code myself in a few minutes. But I would like to change the timeout. Currently it seems to be set at about an hour give or take? I'd like to set it to something longer...maybe the end of the day?

Thanks.
Aoirthoir
 
Posts: 420
Joined: Wed Dec 31, 1969 5:00 pm

Postby Aoirthoir » Fri Dec 01, 2006 12:24 pm

Well I think I found the place but it doesnt make a lot of sense. From what I see here the cookie should be available for 24 hours? Not sure..going to change and test it.


// timeout value for the cookie
$ cookie_timeout = (isset($this->conf['session_timeout']) ?
$ this->conf['session_timeout'] : 24*60*60);
Aoirthoir
 
Posts: 420
Joined: Wed Dec 31, 1969 5:00 pm

Postby Aoirthoir » Fri Dec 01, 2006 12:46 pm

Solved...in Application.php I changed this:

// timeout value for the cookie
//$cookie_timeout = (isset($this->_conf['session_timeout']) ? $this->_conf['session_timeout'] : 24*60*60);

To this:

$cookie_timeout = 8*60*60;

Its a Q&D fix for now....I imagine that session_timeout can be set in the conf.ini file..but not 100% sure about that..so this will work until I know for sure.
Aoirthoir
 
Posts: 420
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Fri Dec 01, 2006 1:56 pm

Yes.. the session_timeout should be able to be set in the conf.ini file.
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 8 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved