Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to prevent Struts <form> appening JSessionid

Posted on 2004-10-27
3
Medium Priority
?
319 Views
Last Modified: 2012-06-21
Hello,
My struts application generates an HTML form similar to the following;

<form name="reportForm" method="post" action="/access/report.do;jsessionid=5DCF3E28211E40A1DEF37CC5A00DBCA9">
   ... form elements ...
</form>

I have a two-part question:  what is the JSession id variable that gets appended to the action URL - my best guess is that its a unique UUID that the server uses for something or other?
Is it absolutely essential?  can't this Id be stored invisibly by the client browser?
I'd like to remove it if this won't disrupt the operation of my forms...

thx.
0
Comment
Question by:blackfrancis75
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 92

Accepted Solution

by:
objects earned 1000 total points
ID: 12429169
its the session id.
its used to track the session if the browser does not have cookies enabled.
0
 
LVL 5

Author Comment

by:blackfrancis75
ID: 12429267
thanks, I have gotten rid of the JSessionId by using a plain HTML <form> element for the form in question.
I guess by doing this i'm sacrificing support for non-cookie enabled browsers...?
0
 
LVL 92

Expert Comment

by:objects
ID: 12429363
thats right, from the server perspective every request will be from a different session.
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question