Results 1 to 1 of 1
- 11-11-2008, 04:03 PM #1
Member
- Join Date
- Jun 2008
- Location
- Australia
- Posts
- 43
- Rep Power
- 0
How to create Cookie for login function
Hi everyone
I do have this activity of mine where we have something like a 'username' and 'password'. function. the idea is, once you've inputted data for username and password in the login page, you just need to incorporate the user with cookies - upon clicking the submit button.
Here's the thing. once he logged in once and closed the browser, and if he decides to enter your page, he can automatically logged in that page.
Here's a simplified workflow (of how it should look like)
1. Login username and password (Login.java)
2. Upon clicking submit, cookies will be created.
3. The page will proceed to the welcome page (via Welcome.java)
4. Close the browser
5. Open the browser
6. Upon typing the URL path (http://localhost:8080/myCookies/login), the page will automatically go to the Welcome part (http://localhost:8080/myCookies/welcome)**
** it looks like signing in a site like myspace then you close the browser, then you open it, your profile is still logged on
** the idea here is, the username and the password details are somehow 'controlled' in the .xml file
any ideas?
Similar Threads
-
RFC 2109 (Association of cookie) - why does it have to follow the regulation?
By javanewbie in forum New To JavaReplies: 1Last Post: 11-07-2008, 05:49 PM -
how to create a login system by using netbean 6?
By j007ha in forum NetBeansReplies: 5Last Post: 08-16-2008, 04:33 PM -
cannot open database requested in login. Login fails
By banduskank in forum JDBCReplies: 0Last Post: 06-25-2008, 12:41 PM -
Setting cookie fails when jarred
By damounh in forum Java AppletsReplies: 0Last Post: 05-08-2008, 02:41 PM -
Setting cookie from doPost
By Java Tip in forum Java TipReplies: 0Last Post: 01-25-2008, 07:08 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks