By: handoko
Date: 2010-09-18
Time: 23:45
|
how do i unset a SESSION variable
Dear skrol,
how do i unset a session variable in a subtemplates mode?
i use unset(); function but it doesn't work.
thanks
|
By: Skrol29
Date: 2010-09-18
Time: 23:55
|
Re: how do i unset a SESSION variable
Hi Handoko,
In the subtemplate mode your script is executed in the context of a function.
So variables are not global by default but local. But there should be no change about the session variables.
You should be able do edit/deleted/add session variables through $_SESSION within the subtemplate script.
|
By: handoko
Date: 2010-09-19
Time: 00:26
|
Re: how do i unset a SESSION variable
Hi Skrol,
But it doesn't work.
actually i unset for example $_SESSION['level'] from one subtemplate and i check it in other subtemplate.
maybe the other subtemplate doesn't update the $_SESSION['level'] data so it still showing the old data.
this is right or not?
|
By: handoko
Date: 2010-09-19
Time: 00:41
|
Re: how do i unset a SESSION variable
Hi Skrol,
problem solved,
yes you are right, for $_SESSION variable is oke to edit within subtemplates,
this is my mistake when i call the link data with POST i/o with GET.
thanks
btw. i look like an error with your forum, my post always double even though i just click it one times.
|
By: Skrol29
Date: 2010-09-20
Time: 12:59
|
Re: how do i unset a SESSION variable
> btw. i look like an error with your forum, my post always double even though i just click it one times.
Strange indeed, but I cannot reproduce the problem.
|
|
Posting in progress.
Please wait...
|