Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default logout

    Howdy,

    I have a question regarding logout page.
    Scenario: A user use login fine, bookmarks a page and then use logout
    successfully.
    When user open the page using bookmark, gets an error message (userid) instead
    of being directed to the login page. Can you help? I'm not sure but I think
    it has to do with sessions or maybe the page is cached?

    Thanks

    MaxSommer Guest

  2. Similar Questions and Discussions

    1. Logout from FMS connection using PHP
      Hello, Is it possible to disconnect from the FMS host site connection by using PHP scripts only? Like clicking a logout button or something. ...
    2. Can't logout administrator
      I can't logoff the administrator. everytime I launch the administrator it automatically logs in. The log off button doesnot work. How can I log it...
    3. inactivity logout
      I have a Flex application that I would like it to logout (essentially call a function) when there is no activity for a given time. (No mouse...
    4. logout button
      I have a login page that displays a name/pw submit button. Currently a user submits these values and, if validated a sessio variable is creaetd...
    5. soundserver/ logout
      Log Out & sound server 1st i've had debian 3.0 rev1 loaded on my computer for a few days now and seems to be working fine. with the exception of...
  3. #2

    Default logout

    Howdy,

    I have a question regarding logout page.
    Scenario: A user use login fine, bookmarks a page and then use logout
    successfully.
    When user open the page using bookmark, gets an error message (userid) instead
    of being directed to the login page. Can you help? I'm not sure but I think
    it has to do with sessions or maybe the page is cached?

    Thanks

    MaxSommer Guest

  4. #3

    Default Re: logout

    It would have a bit to do with how you structured your appliction. Do you
    have an application.cfm file for these web pages? Does it check to see if a
    user is logged in? Usually you should use an app.cfm and then do a check in it
    to see if the user is logged in, if not, redirect to the login form. If you
    give more detail, I may be able to explain further.

    Bryan

    blewis Guest

  5. #4

    Default Logout

    :( I have flex application, but the login page codded in jsp (login.jsp). so
    what I need to do is when the user clicks the logout tab in the flex
    application this will close the application and take him to the login page. the
    problem is how do I call the jsp page from Flex applicaion. any help in this
    subject will be appreciated.

    Thank you very much,
    mashakela

    mashakela Guest

  6. #5

    Default Re: Logout

    you can try getUrl('logout.jsp'); have the logout.jsp log the user out and
    then redirect to login.jsp.

    you can have a remoteobject that will do session.invalidate(); //which should
    be the same as logout. then do getUrl('login.jsp');

    you can do HttpService to logout.jsp and the do getUrl('login.jsp');

    when you use getUrl like this I believe it should use the window that your
    flex app is opened in.

    bdeen Guest

  7. #6

    Default Re: Logout

    bdeen wrote:
    > you can try getUrl('logout.jsp'); have the logout.jsp log the user out and
    > then redirect to login.jsp.
    >
    > you can have a remoteobject that will do session.invalidate(); //which should
    > be the same as logout. then do getUrl('login.jsp');
    >
    > you can do HttpService to logout.jsp and the do getUrl('login.jsp');
    >
    > when you use getUrl like this I believe it should use the window that your
    > flex app is opened in.
    >
    In most J2EE servers you are not allowed to call login.jsp directly.
    Simply instead on your logout page do a redirect to a page which is
    secured by your security-constraint. So your logout page might look like


    <%@ page language="Java"%>

    <%
    session.invalidate();
    response.sendRedirect("/index.jsp");
    %>

    Now, you will be logged out and redirected to index.jsp. Assuming
    index.jsp as a security-constraint on it, the container will throw up
    the login.jsp challenge.

    --
    Dave Wolf
    Cynergy Systems, Inc.
    Macromedia Flex Alliance Partner
    [url]http://www.cynergysystems.com[/url]

    Email: [email]dave.wolf@cynergysystems.com[/email]
    Office: 866-CYNERGY x85
    Dave Wolf Guest

  8. #7

    Default Re: Logout

    Thank you bdeen and Dave for the reply, actually I don't have logout.jsp file
    yet, what I tried to do was to call login.jsp from the main flex applicaion's
    actionScript file. as Dave said I should have logout.jsp, so can I create
    logout function using the actionScript file instead of jsp and then call
    login.jsp form that function via getUrl("login.jsp");

    Thank you for your help
    mashakela

    mashakela Guest

  9. #8

    Default Re: Logout

    mashakela wrote:
    > Thank you bdeen and Dave for the reply, actually I don't have logout.jsp file
    > yet, what I tried to do was to call login.jsp from the main flex applicaion's
    > actionScript file. as Dave said I should have logout.jsp, so can I create
    > logout function using the actionScript file instead of jsp and then call
    > login.jsp form that function via getUrl("login.jsp");
    >
    > Thank you for your help
    > mashakela
    >
    Look carefully at what I said though. Most J2EE servers will be very
    unhappy if you call the login form directly. They assume the login form
    is hidden, and is a "challenge" for a request for a protected resouce.

    Dont redirect to "login.jsp" and dont do it from AS. Let your
    logout.jsp do it, and do the redirect from there.

    --
    Dave Wolf
    Cynergy Systems, Inc.
    Macromedia Flex Alliance Partner
    [url]http://www.cynergysystems.com[/url]

    Email: [email]dave.wolf@cynergysystems.com[/email]
    Office: 866-CYNERGY x85
    Dave Wolf Guest

  10. #9

    Default Logout

    I've been playing around with the Chat.mxml which is part of the
    Collaborative Dashboard demo included in Flex Data Services Express.
    So far I have been able to have the chat application announce the name
    of a new user when they enter the chat application. What I would like
    to do now would be to have a similar announcement for when a user
    leaves.

    Is there an onClose event I could use to call the announcing function
    or would I have to set up a way to basically ping the users and check
    their status that way?

    Any help will be greatly appreciated.

    DaFallus Guest

  11. #10

    Default Re: Logout

    It is not possible use object FlexSession and
    addSessionDestroyedListener() method for it ?

    DaFallus napísal(a):
    > I've been playing around with the Chat.mxml which is part of the
    > Collaborative Dashboard demo included in Flex Data Services Express.
    > So far I have been able to have the chat application announce the name
    > of a new user when they enter the chat application. What I would like
    > to do now would be to have a similar announcement for when a user
    > leaves.
    >
    > Is there an onClose event I could use to call the announcing function
    > or would I have to set up a way to basically ping the users and check
    > their status that way?
    >
    > Any help will be greatly appreciated.
    malaschitz.conf@gmail.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139