16. oktober 2001 - 09:08Der er
4 kommentarer og 1 løsning
Session problemo
Hola!
I have a website devided into 2 dirs, one for public and one for admin.
In the public part I set a object into the session, after that in some case the user can enter the admin part (the other dir) and when he returns to the public part (the first dir) the session is gone.
I guess that this happens because of the different dirs, but since the project is quite big I can\'t change the dir-structure.
So if anyone can tell me how to solve this properly I would be most thankful.
I Set this like this: if(request.getParameter(\"tikd\") != null && !request.getParameter(\"tikd\").trim().equals(\"\")) { tikd = request.getParameter(\"tikd\"); FilePost filePost = new FilePost tikd, \"\"); session.setAttribute(Constants.FILEPOST, filePost); }
I do this in a tag, and in the method doStartTag() with the scope: return Tag.SKIP_BODY;
So I guess that I store this in the session-stack.
Thanks for your time, but it looks like that my problem was my own fault and had nothing to do with the session.
Best Regards
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.