Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Session value in include
September 20, 2004, 12:29 pm
rate this thread
I am having a problem accessing a session value from an include file - I
echoed out session_id() from the include and it changes each time I navigate
from one page which includes the include to another. Why is this happening
as I'm pretty sure that's what is preventing me accessing my session. I'm
using cookie based sessions. This is driving me nuts - please help!
- Alvaro G Vicario
September 20, 2004, 3:04 pm
Re: Session value in include
Including file is the same as pasting the code. The only thing I can think
of with all the incredible amount of info you provide :) is that you're
including a file through a web server:
If the included code relies on sessions, this doesn't make much sense. It's
your webserver the one that opens the session, not the client browser. What
could be the purpose of that?
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
- » Selecting part of an image and storing it in an ODBC data source
- — Previous thread in » PHP Scripting Forum