sessions problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Sord
Forum Newbie
Posts: 3
Joined: Wed Jul 30, 2003 3:26 am

sessions problem

Post by Sord »

Hello, I am running PHP 4.3.2. I am working on the user authentication part of my website, and when I test my site on the computer it's hosted on, the sessions and everything work (passing information such as user_level or first_name). However when I try from a different computer (non-local) the sessions don't carry over. I will post my code or create a test user if someone needs to look at it.

Thanks!
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

this sounds to me like yourcode works, but hat the issue is the settings on the network
Sord
Forum Newbie
Posts: 3
Joined: Wed Jul 30, 2003 3:26 am

Post by Sord »

What settings should I look at? I'm running Apache 1.3.28 on Mac OS X 10.2.6, with a wireless network however my computer is the DMZ (meaning I get the real IP)
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

look at how it deals with the outside world.

it sounds like the router or bastion host is doing something to requests to your server from the outside world. since i son't know your router/bastion host i don't know what specifically could be causing that.

normally it'd be the keep-alive or something else that deals with realizing this is still the same login as before
Sord
Forum Newbie
Posts: 3
Joined: Wed Jul 30, 2003 3:26 am

Post by Sord »

Well, Im hosting two websites here, and the second one had the problems. It was in my /iceis directory (/ relative to the webservers directory), and the domain for the second one was at cjb.net, while the first was at dyndns.org. I found that the first site worked fine with the sessions, so instead of trying to solve the problem by reworking my site or domain or whatever, because the two sites are very similar I simply merged the two. A user goes to register, places a check by whichever site, or both, and when they go to login they get a menu for whichever site they are registered to.
Post Reply