tags:

views:

145

answers:

1

I know once you run yor jsf application the server will generate a session id, But how can i do like once the user login to the system then regenerate the session id ? Can i do this?

A: 

Invalidate the current session and the get a new session:

//invalidate the current session
request.getSession().invalidate();
/*
get another session and get the ID (getSession()) will create a session if one does not exist
*/
request.getSession().getId();
Brian

related questions