spieh
Junior Member
Posts: 3
Registered: 1/12/2005
Member Is Offline
|
| posted on 1/12/2005 at 09:11 PM |
|
|
excuting php during menu creation
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
Administrator
Posts: 84
Registered: 11/22/2004
Member Is Offline
|
| posted on 1/31/2005 at 06:11 PM |
|
|
Excuting php during menu creation
You should generate MENU_ITEMS dynamically with SessionID as a parameter in URLs.
|
|
|
titus
Junior Member
Posts: 3
Registered: 2/14/2005
Member Is Offline
|
| posted on 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
Member
Posts: 12
Registered: 6/10/2006
Location: Johannesburg, South Africa
Member Is Offline
|
| posted on 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?
|
|
|