Jump to content

Php Session Issues


rajnair0278

Recommended Posts

Hello folks, this is my first post and relatively new to PHP also. I am facing some real session issues. Will explain in detail: I have a main webpage that opens up in a new browser window. The webpage has several frames that opens up different .php files. The frames refresh after every fix duration. So the main page never refreshes completely. I have a session set on it. All is fine.

Now when a user logs in with the same username and password on machine 2 as machine 1 the user on machine 1 should not be able to browse further. His session should expire. Something that you so often see on yahoo mail site. Got my point??

Do leme know if you need anyother information. The site is hosted on Linux 9 and Mysql is the database. Any help will be appreciated. Thx in advance. Cheers!!
Link to comment
https://forums.phpfreaks.com/topic/7460-php-session-issues/
Share on other sites

So you want to log someone out if they log in on a differant machine?

I would guess the only way of doing this would be to record the IP used to log in, and on each refresh of the frame check if the current IP being used is the same as the last logged in IP. If its not, log them out.
Link to comment
https://forums.phpfreaks.com/topic/7460-php-session-issues/#findComment-27413
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.