473,498 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

jsp - session - how to incorporate session?

27 New Member
Hi,

I would like to know how to make use of session to apply in my jsp pages.

My login.html page contains the session codes as follows:-

Expand|Select|Wrap|Line Numbers
  1. <%@page import="java.util.*"%>
  2. <String str = request.getParameter("UserID"));
  3.  
  4. session.setAttribute("UserID", request.getParameter("UserID"));%>
  5. Welcome to <session.setAttribute("UserID").equals("")){%>
  6. <ahref ="login.jsp""><b>Login</b></a>
  7. <%>}
  8.  
However, I'm stuck here. I know that there's a session value which is created for that particular user when he/she first logged in. If not, this person will need to do the login and validate against the user name and password before the user can enter another page.

Now, if this person has login before, I assume that the programme will store the value objects somewhere right? If yes, where is the value objects store?

When the person go to another page, and since the user has logged in before, so no need to do the re-log in. How do I incorporate the session object in another page so that this person doesnt need to re-login.

Advice on the above is greatly appreciated.
Feb 10 '10 #1
0 1226

Sign in to post your reply or Sign up for a free account.

Similar topics

5
1852
by: Golf Nut | last post by:
hello all! I would like to create a session class which would transparently handle sessions as well as serialize, encode and compute an md5 hash of all $_REQUEST information. This would...
0
1447
by: Michel | last post by:
I was successfully able to compile and incorporate an HTML Help file into my Access database. However, the only way that I was able to do this was by repeating the name of the HTML Help file...
20
5272
by: ctyrrell | last post by:
Does anyone have any idea how to recover from a run-time error 3002 which I get after creating a workspace 242 times? Or better yet, avoid getting it in the first place? I am creating a...
1
1301
by: Javier Estrada | last post by:
I have a source-code library, that provides header and source files (similar to MFC). What would be a good way to automatically incorporate it into other projects? The way I do it today is by...
7
2353
by: Japhy | last post by:
Hello, I need to save values typed into forms across several scripts, before the user actually 'submits' the form to update the mysql db. I have been exploring ways to do this, and looking for...
11
1546
by: Kevin | last post by:
I have a problem I'm trying to figure out how to resolve in Access. I have a volunteer database for a project which occurs each year. Currently I have to go in and wipe out the data each year to...
1
3577
by: NarutoFanatic | last post by:
Hi, Im currently updating our email sending functionality of our application. The website is written in classic asp and all codes are really a mess. anyway my problem is that our current process...
10
4377
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
I've been on this for a while, and cannot figure it out. Can someone please help with this message? SessionState can only be used when EnableSessionState is set to true, either in a...
3
2509
by: Tofubia | last post by:
Hi, This is kinda new to me but I'm desparate for some help on python programming!! I'm currently writing a scrape for a site, but unfortunately, everytime I copy and paste the link into python...
4
6107
by: Yonih | last post by:
Hey Yall, I am trying to incorporate a Once Per session Cookie that will expire once the browser is closed so some one who comes to my website will see my popup the first time her visits the...
0
7124
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6998
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7163
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6884
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1416
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
651
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.