473,372 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

How to append jsessionid in URL

rsrinivasan
221 100+
Hi all,
I am developing application using struts. But i do not know how to append jsession id in URL. If any one know, reply me asap.

Thanks,
Jan 8 '08 #1
4 43452
ajos
283 100+
Hi all,
I am developing application using struts. But i do not know how to append jsession id in URL. If any one know, reply me asap.

Thanks,
Why do you need it, It normally is not advised to append the jsessionid in the url. read this .
Check your server documentation and make sure that the servlet context for your web app has session tracking using cookies disabled.
set the cookies to true.
Further read the tomcat/your documentation for more answers about it.
I hope this should be it.
regards,
ajos
Jan 8 '08 #2
rsrinivasan
221 100+
Why do you need it, It normally is not advised to append the jsessionid in the url. read this .
Check your server documentation and make sure that the servlet context for your web app has session tracking using cookies disabled.
set the cookies to true.
Further read the tomcat/your documentation for more answers about it.
I hope this should be it.
regards,
ajos
Thanks for your reply.

But i need to append the jsessionid with URL. Because when i click some URL from the "Address Bar", it takes that page from cookie instead of getting that page from the server.

Thanks,
Jan 8 '08 #3
rsrinivasan
221 100+
Thanks for your reply.

But i need to append the jsessionid with URL. Because when i click some URL from the "Address Bar", it takes that page from cookie instead of getting that page from the server.

Thanks,
Hello if any one know how to append jsessionid with URL, reply me. It is very urgent.

Regards,
Jan 9 '08 #4
ajos
283 100+
Hello if any one know how to append jsessionid with URL, reply me. It is very urgent.

Regards,
I guess you didnt read the article in the link that i posted.
It say's
Cookieless sessions are achieved in Java by appending a string of the format ;jsessionid=SESSION_IDENTIFIER to the end of a URL. To do this, all links emitted by your website need to be passed through either HttpServletRequest.encodeURL(), either directly or through mechanisms such as the JSTL <c:out /> tag. Failure to do this for even a single link can result in your users losing their session forever.
It also has examples in it.Go through it.:)
regards,
ajos
Jan 9 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: cody | last post by:
Why isn't there an StringBuilder.Append() overload with a StringBuilder as argument? Is there a reason that I missed?
25
by: Yves Glodt | last post by:
Hello, if I do this: for row in sqlsth: ________pkcolumns.append(row.strip()) ________etc without a prior:
3
by: Jonathan Buckland | last post by:
Can someone give me an example how to append data without having to load the complete XML file. Is this possible? Jonathan
9
by: JMCN | last post by:
hi- i have inherited an access 97 database that keeps track of the loans. i have been running into referential intergrity problems when i try to append new loans to table. first of all is a...
0
by: audleman | last post by:
I have an ASP form on my website where a visitor enters information. On submit, the form calls a stored procedure stores in a MS SQL 2000 database. The stored procedure works most of the time, but...
26
by: John Salerno | last post by:
If I want to create a list of the form (where each item is repeated twice after the first one), how might I do that most efficiently? Right now I have this: series = for x in range(10): ...
2
by: jeremito | last post by:
I have created a class that inherits from the list object. I want to override the append function to allow my class to append several copies at the same time with one function call. I want to do...
10
by: HYRY | last post by:
I have the following questions, I am using Python 2.4.2 19167152 #1 11306608 #1 1. the address of a.append and list.append is different, can I get the address of...
2
by: sumanta123 | last post by:
Dear Sir, In my servlet proggram when i am click the link of ApplicationStatus.jsp in the address bar the url link is showing http://01hw173228:81/help/ApplicationStatus.jsp. When i submit the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.