Session in Java Application

T

terry

I am writting a client-server database program by Java(Not Web type).
Does anyone have experience how to write login session? For example,
users are able to edit/delete/add data according to their security
level of login data.

I need the login session data stored at server side. Does Java have a
standard class to handle this? I know HTTPSession but I am not
writting a http type application.

Thanks!
 
J

Jeff Robertson

I am writting a client-server database program by Java(Not Web type).
Does anyone have experience how to write login session? For example,
users are able to edit/delete/add data according to their security
level of login data.

I need the login session data stored at server side. Does Java have a
standard class to handle this? I know HTTPSession but I am not
writting a http type application.

Thanks!

Is the server application an EJB? Stateful session beans should work.
 
S

Sudsy

terry said:
I am writting a client-server database program by Java(Not Web type).
Does anyone have experience how to write login session? For example,
users are able to edit/delete/add data according to their security
level of login data.

I need the login session data stored at server side. Does Java have a
standard class to handle this? I know HTTPSession but I am not
writting a http type application.

Thanks!

Associate a java.sql.Connection object with each client. Collect
the credentials and use the DriverManager.getConnection( String url,
String username, String password ) static method to obtain the
connection. Leave it up to the database to decide whether the
provided credentials are valid for a particular operation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top