Jump to content

[SOLVED] Array Session


l!m!t

Recommended Posts

Hello Everyone,

 

 

This is probably a stupid question and im not even sure if this is correct, but is it possible to put a full array info a session var?

 

Something like...

 

$comments_admin=array(
		'message' => $_REQUEST['message'],
		'temp1' => $_REQUEST['temp1'],
		'temp2' => $_REQUEST['temp1']);

$_SESSION['comments_admin']=$comments_admin;

 

Is the above possible to do ? I cant seem to get it working, any suggestion would be great I am still learning.

Link to comment
https://forums.phpfreaks.com/topic/144191-solved-array-session/
Share on other sites

that looks good but have you got session_start() somewhere one both pages?

 

Scott.

 

 

Yeah have the session_start, but doesn't seem to register. Maybe I need to call it Global, I thought maybe my code was wrong. I will keep working and see if I can figure it out.

 

Any further suggestions would be great!

Link to comment
https://forums.phpfreaks.com/topic/144191-solved-array-session/#findComment-756682
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.