miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Master Class miniBB Support Forums / Master Class /   

What's the difference and how do they work: $cookie_expires & $cookie_renew

Author lbogaert
#1 | Posted: 17 Nov 2005 22:10 

I'm relative new to minibb, but because I like it's look so much, I decided to use it on Joomla (CMS).
So I started writing a bridge for Joomla<->MiniBB.

So far, it's going quite well, but I don't understand something.
In the configuration of minibb, there are these two variables:

I set the $cookie_expires the same value as the session time of Joomla.
But when cookie_expires is smaller than cookie_renew, it just doesn´t work.

What's the link between the two and why can't cookie_expires be smaller than cookie_renew?

Thanks in advance. If you want to check the progress of my bridge, you can visit this website.

Author Team
#2 | Posted: 18 Nov 2005 17:22 
$cookie_expires is unix epoch time in seconds, after which cookie will expire. When authorizing user's session (each time he views the pages), script is checking, how many time is left before cookie expires. If this time is less than $cookie_renew amount of seconds, expiration of cookie is prolong $cookie_expires seconds more.

Author blizzy_snippy
#3 | Posted: 18 Nov 2005 19:27 
do you save a last visit value in cookies?

Author Team
#4 | Posted: 18 Nov 2005 21:21 
Nope, we don't. What's the sense to keep this value in cookie?

Author blizzy_snippy
#5 | Posted: 19 Nov 2005 15:43 
Well... There's a sense. For unregistred users:)

Author Team
#6 | Posted: 21 Nov 2005 08:58 
In doesn't matter, for registered or not. If you are reading cookie, it means already he is online. What the sense to keep cookie on user's computer? If he shuts down the browser, you can not read this cookie - and then what?

Master Class miniBB Support Forums / Master Class / What's the difference and how do they work: $cookie_expires & $cookie_renew Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB