6 users online. Create an account or sign in to join them.Users

Search

Im new on Symphony world, but enjoying a lot. Until now, all questions I have, found the answers here in the forum. But about session lifetime I still looking for.

What I want to do is very simple, just define a time for session expire. but individualy in backend and frontend. maybe in config file, or in system preferences…

please, I appreciate any help on this.

Approximately line 90 of /lib/core/class.symphony.php:

$this->Cookie = new Cookie(__SYM_COOKIE_PREFIX_, TWO_WEEKS, __SYM_COOKIE_PATH__);

That is where the cookie is created. The TWO_WEEKS constant is value used for cookie lifetime. This value can be changed in lib/boot/defines.php @ line 35:

define_safe('TWO_WEEKS',    (60*60*24*14));

So that is how you change the core cookie/session stuff. This cookie object is for the Administration login use, so there is no way to have a different expiry for the front-end and backend.

What exactly are you trying to do?

This information solves my problem.

I was trying to set different lifetime for Authors and Members (using the extension Members). But I think it is not necessary after all.

Thanks Alistair!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details