|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello everyone,
Plzz help me out of this.Actually I modified the .profile file of my frnds to my TOMCAT.Then when I ran the server it gave me ".scr" file ownership have changed which I have corrected it to mine in my context. Then onwards session is not getting carried which was fine 2 days ago. Actually my code for user registration is as such I ll set the Attribute of lastname of the user by which I have got when he registered HttpSession session = request.getSession(true); if(session.isNew() == false) { session.invalidate(); session = request.getSession(true); } session.setAttribute("firstname",sel1); session.setAttribute("lastname",sel2); Then this servlet forwards to a HTML link which inturn forwards to another HTML file containing a set of questions. This invokes a servlet which has code as follows HttpSession session = request.getSession(); String lastname = (String)session.getAttribute("lastname"); System.out.println(lastname); This prints as NULL for lastname I am unable to understand if the problem is in my CODE or TOMCAT. the same code works on different server having tomcat but not mine. Could anyone please throw light on this.I would be really grateful to you. Thank You Sai Krishna |
|
#2
|
|||
|
|||
|
Figured it out.
Actually the owner ship permissions of files have changed.
Sai Krishna Kosaraju |
|
#3
|
||||
|
||||
|
Thanks for posting a followup.
![]()
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
|
#4
|
|||
|
|||
|
Session variables
Quote:
Hi we experience the same problem right now , although it is after 2 years time could you help us. We worte the same code lines to open a session and retrieve value and then I read your problem and I tried to assgin work folder to a user type "everyone" that tomcat can write session variables in it without any authority problems but it did not work out .. How did you solve your problem and permission right thing ?? Thanks a lot |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > session variable is not getting carried..may be problem with TOMCAT |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|