• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

JSESSIONID Issue

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I enabled SSO auto login feature everything is working fine.
By default jsessionid is appened in the url. If jsessionid is appended in url i am not able to click on any link in Mac Safari Browser.

By default safari is accepting cookies.I don't why jforum application still appending jsessionid at the end of the url even it accept cookies.

I enabled cookies="ture" in tomcat configuration.

Now after auto login still it is showing jsessionid in the url but if i click any link that doesn't have jsessionid next time onwards it is not showing jsessionid in the url.

Is there any way to remove/disable jsessionid in the url after auto login?


Thanks,
Gopal
[originally posted on jforum.net by gopal]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Note: Safari would just hang on AJAX URLs that contained the character ";".

I did a temporary fix to make it work in safari browser.

In JForumContext.java i updated the encodeURL(String url, String extension) with the following line:

return ((String)response.encodeURL(ucomplete)).replaceAll(";","%3B");

Hope it may useful to someone in the future.

Thanks
Gopal

[originally posted on jforum.net by gopal]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In every first request the jsessionid is appended, as the container still does not have the confirmation that the browser supports cookies.

In subsequent requests the param will not be added anymore.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you are right but in safari browser if url contains ; then it is not allowing to click on any of these links. It's a temporary fix.

Gopal
[originally posted on jforum.net by gopal]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!