Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SESSION VARIABLE

 
   Database Forums (Home) -> PHP RSS
Next:  help with regular expression interpretation  
Author Message
Philip WATTS

External


Since: Dec 01, 2003
Posts: 5



(Msg. 1) Posted: Sun Aug 01, 2004 3:54 pm
Post subject: SESSION VARIABLE
Archived from groups: alt>php (more info?)

I have installed PHP 4.3 under windows with Apache. I know that it works as
I have run phpinfo() and a few small files that parsed ok.

However I cannot use session variables. They are not being passed on from
one page to the next.

I have tried my scripts on another computer where they work ok, so I assume
that something is wrong in my configuration. Can anyone give me a pointer
please?

Many thanks

Phil

 >> Stay informed about: SESSION VARIABLE 
Back to top
Login to vote
Janwillem Borleffs1

External


Since: Sep 17, 2003
Posts: 170



(Msg. 2) Posted: Sun Aug 01, 2004 4:54 pm
Post subject: Re: SESSION VARIABLE [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Philip WATTS wrote:
 > I have tried my scripts on another computer where they work ok, so I
 > assume that something is wrong in my configuration. Can anyone give
 > me a pointer please?
 >

How do you set the session vars? Try the following and check the output:

page1.php:

<?php
session_start();
$_SESSION['message'] = "it works";
?>

page2.php:

<?php
session_start();
print $_SESSION['message'];
?>


JW<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: SESSION VARIABLE 
Back to top
Login to vote
Display posts from previous:   
   Database Forums (Home) -> PHP All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]