Problem with sessions

From: Date: Sun, 23 Jun 2002 23:12:46 +0000
Subject: Problem with sessions
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4985@lists.php.net to get a copy of this message
Hi, I have tryed to make an auto_login function for one of my scripts. there for I need some session-vars and some cookies. When the user enters the website/script, i can see/use his cookies and so I know who it is. Then I can fetch all saved data about him from database and put these data in a sessionvariable. The problem is: Smarty can´t access these data, becaus it is not a real sessionvar (loaded from cookie) it is just a session var, that i still lokal, becaus it is not send to user. Smarty can only access it, when the user reloads the website and transfers the sessionvar as cookie-var back to the script. Is there a method to fix this problem? Yet I have assigned the session-vars separatly to Smarty, but this is not good, becaus i cant access it via the real $smarty.session.varname tag. (I hope you could understand what I mean, because of my bad englisch)

« previous php.smarty.general (#4985) next »