Link to home
Create AccountLog in
Avatar of Neil Thompson
Neil ThompsonFlag for United Kingdom of Great Britain and Northern Ireland

asked on

cannot store / write sessions

Hi

I'm trying to set sessions based on the post then use them later, any idea why this does not work.... and is this a security risk?

if it is a rick, are there better ways or something else I should add to check on

Thanks
Neil

session_start();
foreach ($_POST as $var => $val) {
   $_SESSION[$var] == $val;
   echo $_SESSION[$var];
}
ASKER CERTIFIED SOLUTION
Avatar of Roonaan
Roonaan
Flag of Netherlands image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Neil Thompson

ASKER

thanks
Neil