28, May 2012

Problem in Session Value - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Problem in Session Value
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Problem in Session Value  (Read 1045 times)
Guest


Email
« on: Mar 30, 2007, 09:51:53 pm »

Hi ,

i  save a specific value using session

Code:
(page1.php)
<?php
session_start
();
$_SESSION['name'] = 'Kamran';
?>

i access the value using(page2.php)

<?php
session_start();
echo("Welcome Mr-"$_SESSION['name']);
?>
Code:

[b]My Question:[/b]

First i run the page1.php
After this i run page2.php the desired output displayed (Welcome Mr-Kamran)
But when i terminate that page and again open page2.php the session values does not appear.
i want to get this session value again and again..
some one help me?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Mar 30, 2007, 11:57:14 pm »

do ypu checked that problem in different browsers?

check also this function:
http://www.finalwebsites.com/snippets.php?id=42

Guest


Email
« Reply #2 on: Mar 31, 2007, 09:30:40 am »

Thanx Olaf ,

can you explain me the concrete concept of session_id() & session_name() functions?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Mar 31, 2007, 09:38:53 am »

Thanx Olaf ,

can you explain me the concrete concept of session_id() & session_name() functions?


check the best manual on the internet:

http://nl3.php.net/session_id

http://nl3.php.net/session_name

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6322
Tags : session values save in session values Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Problem in Session Value
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 08:24:08 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.