473,406 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

sessions and persistence?

raj
Hi,

How are sites built so that once a website has been left (either by logging
out or by just moving out of the domain), that a login becomes necessary
again once the site is revisited (either by back button, history or
revisiting the site)?

Thank you in advance.

Kind regards,

Raj (Newbie)

Jan 13 '07 #1
3 1148
raj wrote:
Hi,

How are sites built so that once a website has been left (either by logging
out or by just moving out of the domain), that a login becomes necessary
again once the site is revisited (either by back button, history or
revisiting the site)?
Using javascript that kills the cookie, but that of course only works if the
user enables javascript, which nowadays don't include all the users.

--

//Aho
Jan 13 '07 #2
On Sat, 13 Jan 2007 23:07:00 +0100, raj <ra*@nospam.comwrote:
Hi,

How are sites built so that once a website has been left (either by
logging
out or by just moving out of the domain), that a login becomes necessary
again once the site is revisited (either by back button, history or
revisiting the site)?

Thank you in advance.

Kind regards,

Raj (Newbie)
Usually a log-in stays active as long as the browser remains open (for
security schemas that don't use cookies) or as long as the cookies aren't
thrown away / expired (for security schemas that do use cookies).

However, you can also use a session key in the querystring, with a
specific time stamp embedded in it. Each time the visitor changes page,
you update the session key with a more current time stamp. Then when the
visitor has been away for a few minutes, or enters the site from a
different place, the session will have expired.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Jan 13 '07 #3
How are sites built so that once a website has been left (either by logging
out or by just moving out of the domain), that a login becomes necessary
again once the site is revisited (either by back button, history or
revisiting the site)?
For logging-out code, look up session_destroy() in the documentation. If
the user does not explicitly log out, I trust the normal session
handling of PHP to do the job. That may mean that the user can come back
during some time without logging on again. I don't mind.

Best regards
Jan 14 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: PerfectDayToChaseTornados | last post by:
Hi All, I'm interested in peoples opinions & experiences of various persistence frameworks. I mainly use EJB2 or straight JDBC for persistence, but have been looking at various alternative...
2
by: Frank Grimm | last post by:
Hi group, i'm looking for a Java persistence framework that is able to cope with changes of the class source, i.e. new/changed attributes and/or methods. Say you have an exported (persistent)...
6
by: Mark Carter | last post by:
I had a play with XML-RPC the other day, and it seemed really simple to use; which really made an impression on me. But you can't make data persist on the server (not without rolling your own...
6
by: Paolo Losi | last post by:
Hi all, I'm pretty new to the python language so please excuse me if this is FAQ... I'm very glad to be part of the list! :-) I'm looking into a way to implement a generic workflow framework...
1
by: Joe | last post by:
I was wondering if there are any recommended persistence frameworks for use in .NET that could be recommended. I am looking for the following requirements: Free/Open Source or very inexpensive....
10
by: Simon Harvey | last post by:
Hi everyone, Can anyone tell me if I declare a global variable in my pages code behind, is it persisted if the page does a post back, or do I need to add the object to the session object in...
8
by: Balazs Wellisch | last post by:
Has anyone here implemented sessions in a load balanced environment using database storage as a custom session handler? I'd be interested to hear about your experiences. Upsides, downsides, bugs,...
2
by: dkode | last post by:
Hello, I am laying out the architecture for a very large website that will scale to a very large degree. I have a couple of questions before I attempt to go and implement a Broker/Persistence...
5
by: Chris Spencer | last post by:
Before I get too carried away with something that's probably unnecessary, please allow me to throw around some ideas. I've been looking for a method of transparent, scalable, and human-readable...
0
myusernotyours
by: myusernotyours | last post by:
Hi all, Am trying to create a Java Desktop App that uses Java Persistence in Netbeans. The database is MS Access but I tried with Mysql and got the same error. When I run the app( Create the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.