mmarif4u Posted April 2, 2007 Share Posted April 2, 2007 Hi guys... I have a simple question about sessions. I want to store a image name or button name or link name in a session variables. So i want to know that is this possible if yes, can some body give me a short example how. Like: Session_start(); $_SESSIOn['Some name']; Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/45218-store-variables-in-sessions/ Share on other sites More sharing options...
fert Posted April 2, 2007 Share Posted April 2, 2007 page1.php session_start(); $_SESSION['name']="http://www.somesite.com/image.png"; page2.php session_start() echo "<img src=\"{$_SESSION['name']}\">"; Link to comment https://forums.phpfreaks.com/topic/45218-store-variables-in-sessions/#findComment-219541 Share on other sites More sharing options...
emehrkay Posted April 2, 2007 Share Posted April 2, 2007 session_start(); $_SESSION['any_name'] = $val; or $_SESSION['name'] = array(); Link to comment https://forums.phpfreaks.com/topic/45218-store-variables-in-sessions/#findComment-219542 Share on other sites More sharing options...
mmarif4u Posted April 2, 2007 Author Share Posted April 2, 2007 Thanks guys for ur reply, I will take a look on it. And try it... Link to comment https://forums.phpfreaks.com/topic/45218-store-variables-in-sessions/#findComment-219595 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.