Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 10th, 2002, 02:19 PM
robertbaker robertbaker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 1 robertbaker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to robertbaker
Post Automatic logins

I am trying to create a registration/login system, and I have the individual parts working fine. Once a user is registered, I want to direct them straight to the "home" (post login) page instead of having to login in each time. The index page is a JSP page (index.jsp), and I want to forward them to home.jsp if they've already registered.

I have been trying to use a cookie to store the information, but apparently the cookies aren't available to a JSP the first time it is displayed.

Is there another way I should be approaching this? The only APIs I am currently using are JSP/Servlet/JDBC and would prefer to stay there (for now) if possible.

Reply With Quote
  #2  
Old April 11th, 2002, 03:29 AM
oscagne oscagne is offline
Java Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Posts: 5 oscagne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I don't know about JSPs not being able to read cookies the first time, but you can definitely do this with servlets instead.

Reply With Quote
  #3  
Old April 11th, 2002, 09:22 AM
robertbaker robertbaker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 1 robertbaker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to robertbaker
The problem seems to have been the fact that I wasn't setting the path of the cookie. I was setting the domain and the age, but not the path. I have everything working great now.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Automatic logins

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap