http://qs321.pair.com?node_id=1083526


in reply to Execute code after session expire

There has to be *some* code *somewhere* that makes your session expire. Add your "post expiry" code to the end of that code.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics

Replies are listed 'Best First'.
Re^2: Execute code after session expire
by rjit17@gmail.com (Initiate) on Apr 24, 2014 at 06:07 UTC
    hi CountZero, Their is a simple code for session expire called expire(); But I am not able to do my job using these method.Can u give me one example ,how to do it.
      "That depends on the situation. So ... what's the situation?" (robotics)
      "Some kind of jar of pickles?" (Anonymous Monk)
      "There has to be *some* code *somewhere*" (CountZero)
      "Their is a simple code for session expire called expire()" (rjit17@gmail.com AKA you)

      But where is your "simple code"?

      N.B.: The monk with direct access to the Crystal_ball is away on vacation.

      Best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

        Hi karlgoethebier Thanks for reply Their is a method in cgi called expire .which we can use to delete present session. Still I can't able to solve my above problem.
        Hi karlgoethebier Thanks for your reply Their is a method called expire in cgi.Which we can use to expire certain session. I dont know how to apply this expire method and use in my above problem
      The code in expire could be anything. Without knowing what it is, I cannot help you. Some information why you cannot use that code would be helpful too.

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      My blog: Imperial Deltronics