CMS Automne
http://www.automne-cms.org/forum/

Using session variables
http://www.automne-cms.org/forum/viewtopic.php?f=7&t=1047
Page 1 sur 1

Auteur:  alexallu [ Sam Oct 22, 2011 11:42 pm ]
Sujet du message:  Using session variables

Hello,

Is it possible to use session variables?

I have this code:

session_register("myusername");
session_register("mypassword");

But when I call them back seams lik they are not registered.

Thanks...

Auteur:  alexallu [ Dim Oct 23, 2011 10:24 am ]
Sujet du message:  Re: Using session variables

Sorry, I found the error, I was loading the variables from a php outside Automne. :D

Auteur:  Frank [ Dim Oct 23, 2011 6:06 pm ]
Sujet du message:  Re: Using session variables

Hi,

If you use a 4.1.3 version or earlier, you can take a look at CMS_Context class :
http://www.automne-cms.org/api/Automne/ ... ntext.html

Session management has been refactored in Automne 4.2 but we haven't updated the PHP documentation yet.
There's a new class CMS_session based on Zend_Session

You can check the source code here :
http://bazaar.launchpad.net/~automne-te ... ession.php

If you run intro session's issues with version 4.2, please report to us, thanks.

Page 1 sur 1 Le fuseau horaire est UTC [Heure d’été]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/