Jump to content

Session/Cockie problem with link


doc1355

Recommended Posts

On my website, I have links to another website. The problem is, when I clink on the link for the first time, the target website gives me the error "Your session has expired". Then I have two options:

[*]Close that window and click on the link again: this will load the page without any problem.

[*]Refresh the window with the error message, again page loads with no issues.

This is not very convenient for my users. I wonder if there is any way to fix this problem from my end using some coding? Not sure how.

Thanks in advance.

Link to comment
Share on other sites

It looks like the website sets a seesion when you visit the site, and later pages (such as the search) require that session to be set, so there's nothing you can do to get a direct link to a search page without getting the session expired error first.

Link to comment
Share on other sites

I undrestand the process. But, my question is how can I expire the session from my end? Is there anyway I can expire the session using a URL or script from my website?

The other thought I had was to may be load two windows in a row, first window to load the page and then close automatically, this way it will reset the session, and then the next window opens with the new session.

I'm not sure if any of these are doable and if so, how exactly to do this.

Thank you for your help.

Link to comment
Share on other sites

If you really wanted to force it I guess you could open it in a new window using javascript, then refresh the new page instantly so the session has been created.

 

I found this while doing a quick search, not tested;

 

var mypopup = window.open('https://freida.ama-assn.org/Freida/user/programSearchDispatch.do?method=searchByPgmNbr&pgmNumber=3801166051');
mypopup.location.reload();

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.