Sessions

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
ganeshXL

Sessions

Post by ganeshXL »

This may be obvious for a lot of people... it wasn't for me though, so I thought I'd share this:

If you need your own PHP sessions in the front-end (e.g. for a shop or login), don't use any user-defined tags. I tried to add session commands at the very top of my template files, but it was completely ignored (no errors either).

What you have to do is simply take the index.php file and add your own session commands at the very top of that file, and re-upload it.

Maybe this will help someone else in the future... I lost quite a few hairs over this (not that I got many left, mind you...)

A note in the FAQ/docs about it would make sense perhaps...
Post Reply

Return to “Tips and Tricks”