Link to home
Start Free TrialLog in
Avatar of sujata7576
sujata7576

asked on

write cookie fro applet

hi all,

I am using applet-servlet communication to write data onto client machine when user logs in for the first time.  I want to save my sessionID in a cookie . how do i do it from my applet??
PS:  I do not want to use netscape.javascript package since i dont have a control over browser version/ type  and OS of client machine.

Avatar of Mick Barry
Mick Barry
Flag of Australia image

the session id is probably already being written to a cookie.
Avatar of sujata7576
sujata7576

ASKER


<< the session id is probably already being written to a cookie. >>

No, Actually the session we are  maintaining is not Tomcat Session ,but some customized Session which is created when user logs in and expires on log out . so this sessionid is not written in cookie
http://www.jguru.com/faq/view.jsp?EID=112568

o/wise using jsobject:

JSObject document = (JSObject) JSObject.getWindow(this).getMember("document");      
document.setMember("cookie","User=neurofase");
ASKER CERTIFIED SOLUTION
Avatar of lcwiding
lcwiding

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial