How to avoid jsession id from URL in Liferay Portal? - liferay

Please can anyone tell me how can i get rid of JSESSIONID parameter from URL?
I do not want it to be appended to the URL.

In the portal-ext.properties file set:
session.enable.url.with.session.id=false

Related

Redirect URL is not allowed: Liferay Page Delete

When I go to Liferay 6.2 page management, and I delete a page from there the page is deleted from db but I get a error that "Dockbar is temporarily unavailable".
Also the logs says:
Redirect URL ....controlPanelCategory=current_site.pages is not allowed
ERROR [http-bio-8080-exec-26][render_portlet_jsp:132] null
com.liferay.portal.NoSuchLayoutException: No Layout exists with the primary key
Adding redirect.url.security.mode=domain to my portal-ext.properties worked and fixed this problem.
We had a similar issue. Some links were missing/not working when we went to the webcontent edit page.
We already had the redirect.url.security.mode=domain, but adding all the URLs to domain allowed solved the issue:
redirect.url.domains.allowed=t1.url.com,t2.url.com (Liferay 6.2.)
In Liferay 7 wildcards should work redirect.url.domains.allowed=*.url.com according to https://docs.liferay.com/portal/7.0/propertiesdoc/portal.properties.html

Azure AD Logout Url - Redirect not working

I'm using Azure AD to authenticate users into a ColdFusion web application. All works great, except when I log the user out I want to redirect them back to a page in my application. The logout works correctly as far as clearing the cookies, etc, but the redirect is not happening.
I'm using the following format on my URL for logging out
https://login.microsoftonline.com/<tenant id>/oauth2/logout?&client_id=MY_CLIENT_ID&post_logout_redirect_uri=https://myredirecturl
If I do not supply a valid URI, it gives me a error message stating that 'post_logout_redirect_uri' value must be a valid absolute Uri.. So I know it's seeing the URL parameter properly, but it is just NOT redirecting.
Anyone have any suggestions?
Thank you!
A few things to try:
Try using a different browser. That could indicate a browser-specific JavaScript issue.
Try URL encoding the URL that you're redirecting to.
Make sure the URL you are redirecting to is in the same domain as your web app.
Also, I noticed your logout URL is a little funny: you have both a "?" followed by a "&" before your client_id query string parameter. I suggest you remove the "&" and have your URL look like .../oauth2/logout?client_id=...&post_logout_redirect_uri=...

how to remove Jsessionid in url ?iam using was6.1 RAD IDE,Java

I need to remove jsessionid from the URL.
i am working in was 6.1 and java.Is there any way to do it.
You can use Apache URL Rewrite,
see if this helps you: http://atgkid.blogspot.in/2011/11/issues-with-jsessionid-in-url.html

How to add a variable from portlet to page type URL - Liferay

I am creating a page type URL providing my URL. In URL i want to append a parameter which i will take it from a portlet. Can any one suggest me how to do this. Is it possible in the way i am doing or not?
Can any one suggest me any other way of doing this.
Regards,
Naveen

Drupal url alias and views and clear urls for taxonomy issues

I am using views module. I have created blocks using views and a url using page display. This is for taxonomy. So my views url looks like this "news/science" So if someone click on the link he should be taken to www.example.com/news/science. However i am taken to a unstyled page with broken links. But when i try to use the url www.example.com?q=news/science i am taken to a proper page with correct data.
The issue is only with taxonomy related terms.
i.e all urls www.example.com/news/technology , www.example.com/news/sports appear broken and unstyled however if i manually visit www.example.com?q=news/technology and www.example.com?q=news/sports i am taken to a proper page.
Can anyone suggest what could be the reason.
The same issues is with admin login and logout. If i use www.example.com?q=user and try to login i can login. Also if i use www.example.com?q=logout i can logout. But if i use clean url aliases ie. www.example.com/logout then i am taken to access denied page.
Do you have the Path module enabled? Thats the module responsible for mapping ?q=logout to /logout.
See here: http://drupal.org/handbook/modules/path
Have you changed anything in .htaccess? any mod-rewrite changes that might be skipping over those particular urls?

Resources