Results 1 to 2 of 2
  1. #1
    hartmannr76 is offline Member
    Join Date
    Feb 2012
    Posts
    3
    Rep Power
    0

    Default Login for beginner

    Ok, so I am working on a project for school and my professor told me that we have to do it in Java. My past experience is in PHP so I am trying to find the most comfortable manner in switching. I am currently trying to work with JSF but I can't seem to get a login working properly. I can get it to set a user and information about them, refresh the page, user is still logged in; refresh the page again and it logs out... Kinda stumped.

    Can anyone point me in the right direction for a login or could give me a better framework to be working with?

    Thanks in advance!!

  2. #2
    nicephotog is offline Member
    Join Date
    Mar 2012
    Posts
    41
    Rep Power
    0

    Default Re: Login for beginner

    Probably not logged out, it simply didn't send parameters to the server second time.
    store your users password and name on the end of each html markup written link(except externals).
    Normally login is kept in a cookie in the browser cache and operated by javascript(much the same way but through a function to modify the a href= url ).

    Java Code:
    < a href="javascript:urlsend();">link</a>

Similar Threads

  1. JSP Login
    By mpraveenu in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 01-17-2012, 05:03 AM
  2. Login
    By geniusokorro in forum NetBeans
    Replies: 5
    Last Post: 08-07-2011, 01:48 PM
  3. help with login
    By dhazwa in forum New To Java
    Replies: 2
    Last Post: 07-23-2011, 08:05 PM
  4. login.jsp
    By roo7 in forum Enterprise JavaBeans (EJB)
    Replies: 5
    Last Post: 12-02-2008, 03:58 PM
  5. Replies: 0
    Last Post: 06-25-2008, 12:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •