Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Struts LoginAction with SSL

  Asked By: Alex    Date: Jul 22    Category: Java    Views: 746
  

When I login to my app, i am under SSL, when my login action verifies
and forwards to the welcome page, i take ssl off. Periodically I
lose my session when this happens. Any takers? Thanks!:)

//LoginAction class
//after validation

ActionForward forward = new ActionForward ();
ActionForward tmp = actionMapping.findForward ( "successpage" );
String path = "http://" +
request.getServerName ()+
tmp.getPath ();
forward.setPath ( path );
forward.setRedirect ( true );
return forward;

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Struts LoginAction with SSL Or get search suggestion and latest updates.




Tagged: