retrieve session variable

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
elv
Posts: 6
Joined: Mon 16. Aug 2004, 19:26

retrieve session variable

Post by elv »

Sorry if I seem to ask the same question over and over again, but I badly need to get the values stored into a session...

What I try to do is a kind of "frontend login", but it doesn't need to be inside phpWcms.
I actually use a form BEFORE the visitor goes inside phpWcms to store a login/password in a session variable.

Once inside the CMS it seems I just can't retrieve these values! I tried my best to figure out why, but I still don't have a clue... I may have missed some important information, but I searched everywhere I could here on the forum and on the docu site.
If someone ever achieved this, please help a poor webdesigner :wink:
elv
Posts: 6
Joined: Mon 16. Aug 2004, 19:26

Post by elv »

Ok I finally figured out what was wrong. The cache was on, so the session variable content was also cached :(
It is cached when teh script is inside [PHP] tag and also when you call an external content.
I disabled the cache and everything works like a charm.

I know it is not a real solution, but as it's for a small website it isn't mandatory to have the cache enabled.
Post Reply