Heres what I am trying to do:
I have a CGI script which is invoked by the user directly through a link -
http://hostname/iw-bin/myscript.cgi (possibly bookmarked). The script does some processing and eventually redirects to somewhere in the workarea (
http://localhost/iw-mount.....)
If the user is logged in, there is no problem. If the user is not logged in, TS will prompt for login whenever the script tries to redirect somewhere in the workarea.
What I am trying to do is (in the CGI script) check if the user is logged in. If not, then prompt for login and then continue its merry way. Now, I can check if the user is logged in by verifying the IWAUTH cookie. I can probably open up the login page in a frame or pop-up. The question is how do I make the CGI script read IWAUTH information and then continue after successful login ?
Basically I want to make sure that a user is already logged in before my CGI does its real job.
Any ideas ?
TS 6.1; W2k