NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

How I check is a session var exist or NOT, so appear appropriate html code, after session.invalidate(); called?

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
lse123



Joined: 26 Sep 2008
Posts: 155
Location: Polis, Cyprus

PostPosted: Fri Jun 25, 2010 7:33 pm    Post subject: How I check is a session var exist or NOT, so appear appropriate html code, after session.invalidate(); called? Reply with quote

How I check is a session var exist or NOT, so appear appropriate html code, after session.invalidate(); called?
Back to top
jhalupka



Joined: 05 Feb 2010
Posts: 52

PostPosted: Mon Jun 28, 2010 9:09 pm    Post subject: Re: How I check is a session var exist or NOT, so appear appropriate html code, after session.invalidate(); called? Reply with quote

I'm not an expert on web servers, but I would think that when you invalidate
a session, all session properties would also become invalid.

If you want to check a session property, can you do that before invalidating
the session?


lse123 wrote:
Quote:

How I check is a session var exist or NOT, so appear appropriate html
code, after session.invalidate(); called?


--
View this message in context: http://old.nabble.com/How-I-check-is-a-session-var-exist-or-NOT%2C-so-appear-appropriate-html-code%2C-after-session.invalidate%28%29--called--tp28995817p29008551.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.
Back to top
jyeary



Joined: 21 Oct 2008
Posts: 606
Location: Simpsonville, SC

PostPosted: Mon Jun 28, 2010 10:43 pm    Post subject: Re: How I check is a session var exist or NOT, so appear appropriate html code, after session.invalidate(); called? Reply with quote

I agree with John F. Once you invalidate a session all bets are off. You need to fetch the values before session invalidation.


On Mon, Jun 28, 2010 at 8:27 AM, Futaleufu_John <address-removed ([email]address-removed[/email])> wrote:
Quote:

I'm not an expert on web servers, but I would think that when you invalidate
a session, all session properties would also become invalid.

If you want to check a session property, can you do that before invalidating
the session?


lse123 wrote:
Quote:

How I check is a session var exist or NOT, so appear appropriate html
code, after session.invalidate(); called?


--
View this message in context: http://old.nabble.com/How-I-check-is-a-session-var-exist-or-NOT%2C-so-appear-appropriate-html-code%2C-after-session.invalidate%28%29--called--tp28995817p29008551.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.




--
John Yeary
--
http://javaevangelist.blogspot.com

"Far better it is to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy much nor suffer much, because they live in the gray twilight that knows not victory nor defeat."
-- Theodore Roosevelt
Back to top
lse123



Joined: 26 Sep 2008
Posts: 155
Location: Polis, Cyprus

PostPosted: Tue Jun 29, 2010 5:03 am    Post subject: can you provide some code... After invalidate() I get errors, how check if a session var exist or not (after)? Reply with quote

can you provide some code... After invalidate() I get errors, how check if a session var exist or not (after)?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo