Re: PHP Sessions

This is a discussion on Re: PHP Sessions within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Stephen Reid wrote: > Yep page 3 has the session_start as its included with the included file > (session_header.php), ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-25-2003
Marc Cuypers
 
Posts: n/a
Default Re: PHP Sessions

Stephen Reid wrote:

> Yep page 3 has the session_start as its included with the included file
> (session_header.php), so where else could the problem be as I have no idea?
>
> Thanks :-)
>
>
> "^MisterJingo^" <misterjingo@keysurf.net> wrote in message
> news:wxXJa.1874$5b3.1269@news-binary.blueyonder.co.uk...
>
>>"Stephen Reid" <news@pokeycam.net> wrote in message
>>news:3ef84286@news.comindico.com.au
>>
>>>Hello,
>>>
>>>I've create a 3 page site using sessions. I can pass the value from
>>>the login page to the second page but when the user goes to third
>>>page nothing is echoed from the session variables. I've included the
>>>files so please let me know what I'm doing wrong as I'm just new to
>>>sessions.
>>>
>>>Thanks :-)

>>
>>on each page where session vars are needed to be accessed do you call
>>session_start(); ?
>>
>> If so we know the problem doesn't lie there and we can look elsewhere :)
>>
>>

>
>
>

first page has _POST variables (form)
second doesn't have _POST parameters, only session variables which are
overwritten in session_header.php

--
Marc.

Reply With Quote
  #2 (permalink)  
Old 06-25-2003
Stephen Reid
 
Posts: n/a
Default Re: PHP Sessions

So how do I fix this so they will carry over to the third page. Do I have
to set them to _post variables on the seconds and third pages?

Thanks :-)

"Marc Cuypers" <mc-news@mgvd.be> wrote in message
news:Q4gKa.66590$1u5.5274@afrodite.telenet-ops.be...
> Stephen Reid wrote:
>
> > Yep page 3 has the session_start as its included with the included file
> > (session_header.php), so where else could the problem be as I have no

idea?
> >
> > Thanks :-)
> >
> >
> > "^MisterJingo^" <misterjingo@keysurf.net> wrote in message
> > news:wxXJa.1874$5b3.1269@news-binary.blueyonder.co.uk...
> >
> >>"Stephen Reid" <news@pokeycam.net> wrote in message
> >>news:3ef84286@news.comindico.com.au
> >>
> >>>Hello,
> >>>
> >>>I've create a 3 page site using sessions. I can pass the value from
> >>>the login page to the second page but when the user goes to third
> >>>page nothing is echoed from the session variables. I've included the
> >>>files so please let me know what I'm doing wrong as I'm just new to
> >>>sessions.
> >>>
> >>>Thanks :-)
> >>
> >>on each page where session vars are needed to be accessed do you call
> >>session_start(); ?
> >>
> >> If so we know the problem doesn't lie there and we can look elsewhere

:)
> >>
> >>

> >
> >
> >

> first page has _POST variables (form)
> second doesn't have _POST parameters, only session variables which are
> overwritten in session_header.php
>
> --
> Marc.
>



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:46 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0