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.
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.
the session id is probably already being written to a cookie.
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).g etMember(" document") ;
document.setMember("cookie ","User=ne urofase");
o/wise using jsobject:
JSObject document = (JSObject) JSObject.getWindow(this).g
document.setMember("cookie
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.