• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

JSESSIONID Issue

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic