I have a problem with passing session variables between folders. I have a working login, and several session variables are created after a successful login. The session works fine until I try to use a script that is located in a different folder or directory. All of my scripts include a login process that is activated if the session id is not found. This is what happens as soon as a script in a different directory to that containing the original login is called. Obviously the session variables are not being passed to the new directory, even though they are clearly being created for the original session.
Can anyone explain this, and suggest a solution, as it is not acceptable to be asking the user to log in every time a script is called from a different directory.
facarroll 0 Junior Poster in Training
jkon 638 Posting Whiz in Training Featured Poster
facarroll 0 Junior Poster in Training
jkon 638 Posting Whiz in Training Featured Poster
facarroll 0 Junior Poster in Training
jkon 638 Posting Whiz in Training Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.