I've had to simply restructure how everything works and use a separate
https login page.  Would've really liked a nice AJAX solution, but it
wouldn't be simple.  If anyone's interested, I did find some RSA/
public key encryption libraries in javascript, none of them well
documented though:
http://shop-js.sourceforge.net/ (with python and perl server side
decoders)
http://www.ohdave.com/rsa/
http://www.home.zonnet.nl/MAvanEverdingen/Code/
http://www.hanewin.net/encrypt/rsa/rsa.htm

On Jul 9, 6:59 pm, James <james.gp....@gmail.com> wrote:
> I suggest that if you do need to do it that, something like this would
> work:
>
> User clicks on AJAX call button/link
> Request is sent to server
>     If logged in, send valid response
>         Do what you have to do. END
>     If not logged in, send a response code back that user is not
> loggged in
>         Javascript sees response code
>         Optional: alert user they need to log in, user clicks button
>         Redirect page to secure login page (with the current URL
> stored in the URL query string or cookie)
>         User logs in and redirected back to previous page
> User clicks on AJAX call button/link again, should be okay this time.
> END
>
> On Jul 9, 3:21 pm, kranthi <kranthi...@gmail.com> wrote:
>
>
>
> > may be you can provide a link to login page instead of the actual textboxes
> > for login(on those pages).

Reply via email to