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).