Board Logo

excuting php during menu creation
spieh - 1/12/2005 at 09:11 PM

when you create the menu using

MENU_ITEMS = ['categoryx', 'categoryx.php'];

It links to the categoryx no problems but if your page uses sessions where the sessionID is passed to the page on the addressbar (i.e http://domain.com/categoryx.php?SessionID=xxxxxxx)

Then you will lose your session upon clicking on the menu and customers will have to relogin again.

I have a php script link(URL) which returns the URL with the session key attached on the end of it.

Does this menu support me calling my PHP script in the Link element of the menu creation such as..

MENU_ITEMS = ['categoryx', link("categoryx.php")];

??


olga - 1/31/2005 at 06:11 PM

You should generate MENU_ITEMS dynamically with SessionID as a parameter in URLs.


titus - 2/14/2005 at 01:53 PM

... or turn on session.use_only_cookies in the php.ini and tell your registered users to accept cookies


LordMerlin - 6/12/2006 at 03:06 AM

Quote:
Originally posted by olga
You should generate MENU_ITEMS dynamically with SessionID as a parameter in URLs.


Would you mind showing us how this can be done please?


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/