Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JSP session question

Status
Not open for further replies.

HoMyGod

Programmer
Jul 17, 2000
59
CH
Hi,

I am using JSP with external classes. The header is like this:

<jsp:useBean class=&quot;myclasses.connect&quot; id=&quot;connection&quot; scope=&quot;session&quot; />

Do I need to place this header at the beginning of all the pages? What are the consequences for the session if I am doing that (does the session id change for all pages?)

Thanx a lot
H.

 
> Do I need to place this header at the beginning of all the pages?

All the pages that you want to access the session object.

> (does the session id change for all pages?)

No, sessions are user based in concept but are also affected to some degree by the 'session engine and configuration' and the browser if your session engine uses cookies to identify the browser session (most of them do).

Good luck
-pete
 
Yes, if you open a new browser, the session change. But I have noticed that if you just do a &quot;open new navigator&quot; or ctrl-n, the session is still the same.

Bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top