how to write logout method

hi how to write logout method..... i am new to programming protected void logOut(){} asap
[124 byte] By [misterraoa] at [2007-10-2 5:40:17]
# 1
http://java.sun.com/docs/books/tutorial/essential/io/
aniseeda at 2007-7-16 1:50:37 > top of Java-index,Administration Tools,Sun Connection...
# 2
The method logOut where u will usein jsp servlet or applcationtell me my I can help u...
ghhd_7a at 2007-7-16 1:50:37 > top of Java-index,Administration Tools,Sun Connection...
# 3
hi sorry for my late communication..... i am going to use this logout method in plain java class..... plz help me asap
misterraoa at 2007-7-16 1:50:37 > top of Java-index,Administration Tools,Sun Connection...
# 4

When I posted my first reply, I was thinking of writing to an output log. Do you mean "logout" like in web applications?

You don't need to write any special code for that. At the most, you would want to clean up the resources like connections, sockets,... created by the application. If you have some mechanism which retains some "login" information, you might reset it to some default value.

Why don't you be specific with your question instead of writing in such a vague manner?

aniseeda at 2007-7-16 1:50:37 > top of Java-index,Administration Tools,Sun Connection...
# 5
yes... i am using this in web application..... yes i am writing message in a prologed manner because i am bit less in experianced programming level..... thank you for ur suggestions...
misterraoa at 2007-7-16 1:50:37 > top of Java-index,Administration Tools,Sun Connection...
# 6
All you really need to do is set everything in the session to null and invalidate the session...
Frantic211a at 2007-7-16 1:50:37 > top of Java-index,Administration Tools,Sun Connection...