Link to home
Start Free TrialLog in
Avatar of 3xtr3m3d
3xtr3m3d

asked on

php session related help needed

Hi

Is it possible to modify a session variable after set?


Thanks
ASKER CERTIFIED SOLUTION
Avatar of rubene
rubene
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or maybe I didn't understand your question? If so, please elaborate.
Avatar of Jagadishwor Dulal
It's confusing do you want to change session name or session value if you want to change session value it is possible.
Like:
<?php session_start();
$abc="Welcome";
$_SESSION['value']=$abc;
echo $_SESSION['value'];//Here session value is Welcome
$newval="Now I am changing the Value";
$_SESSION['value']=$newval;
echo $_SESSION['value']; //Here session value is changed.

?>

Open in new window

Avatar of 3xtr3m3d
3xtr3m3d

ASKER

Hi Thanks for the quick answers and solution

i just wanted to change session value and now it works

Thanks