Solved

Web Page Log on.

Posted on 2004-09-19
4
202 Views
Last Modified: 2010-04-17
Hello experts,

I am new to web page developing and I have created a few pages that are hyperlinked together.  Each page can query, add, delete or update records in a DB.  On each page the user must enter their UserName and Password along with their database values to ammend a record.  The page will validate the username and password and upate/delete/add/whatever the corrisponding record.  

What I would like, is for the user to Log into a Home Page and then not have to log in again during their session.  <--- this is how most pages work if I am not mistaken.  I may be able to acomplish this with just the basic ideas behind how one would do this.  But, I do need some detail about the concepts.

Thank you,

-TH
0
Comment
Question by:travishaberman
  • 2
  • 2
4 Comments
 
LVL 36

Expert Comment

by:Zyloch
ID: 12097756
Hi travishaberman,

Mainly, you use a session cookie.

It usually depends on what server-side language you use to determine how to proceed, but for instance, PHP has session_start(); and stuff...

Regards,
Zyloch
0
 

Author Comment

by:travishaberman
ID: 12097784
A cookie is it?  I have never really been quite clear on what those are.  Could you explain a bit more nad tell me how I might impliment this cookie?

Thank you,

-TH
0
 
LVL 36

Accepted Solution

by:
Zyloch earned 500 total points
ID: 12097806
Yes, cookies, but more specifically, session cookies.

A cookie is something that you can store on the user's computer so that the next time they visit your site, you can check it for a value or something. For instance, those Remember Me features use a long-term cookie. They set an expire date and then next time you visit there. If the expire date isn't up, and the cookie is there, you can be sure the user has remember me on.

Session cookies, meanwhile, only stay for the session, meaning after the last browser window is closed, poof, it goes, goodbye. Most also store session information in a database for more security.


To set a cookie, different languages have different methods, even Javascript has it's own way, can you specify which language you're using?

Regards...
0
 

Author Comment

by:travishaberman
ID: 12097896
That is what I needed....

Thank you,

-TH
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question