Refresh the page after use

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ajd335
    New Member
    • Apr 2008
    • 123

    Refresh the page after use

    Hi ,
    I have one survey page of product in my site
    I want ,IF one person completes the survey and continue with something else,then if he use the back button , the things he has selected in the form should no be appear.And also the session for that page should be expired

    Code:
    <META HTTP-EQUIV=Refresh CONTENT="20">  we can use.But i don't want to give the specific time.
    Thanks.
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Originally posted by ajd335
    Hi ,
    I have one survey page of product in my site
    I want ,IF one person completes the survey and continue with something else,then if he use the back button , the things he has selected in the form should no be appear.And also the session for that page should be expired

    Code:
    <META HTTP-EQUIV=Refresh CONTENT="20">  we can use.But i don't want to give the specific time.
    Thanks.
    Impossible (pretty much).
    When you hit the back button, you typically view a cached version of the page. And to counter this, you'd likely have to build your own browser!

    Comment

    • hsriat
      Recognized Expert Top Contributor
      • Jan 2008
      • 1653

      #3
      Originally posted by ajd335
      Hi ,
      I have one survey page of product in my site
      I want ,IF one person completes the survey and continue with something else,then if he use the back button , the things he has selected in the form should no be appear.And also the session for that page should be expired

      Code:
      <META HTTP-EQUIV=Refresh CONTENT="20">  we can use.But i don't want to give the specific time.
      Thanks.
      Provide autocomplete="o ff" to each input tag for the first thing.

      Comment

      • ajd335
        New Member
        • Apr 2008
        • 123

        #4
        Originally posted by hsriat
        Provide autocomplete="o ff" to each input tag for the first thing.

        Hi,
        autocomplete ="off" is working .. But i want to use java script..and that also not using the timelimit...
        how can i do that...Thanks

        Comment

        • hsriat
          Recognized Expert Top Contributor
          • Jan 2008
          • 1653

          #5
          Originally posted by ajd335
          Hi,
          autocomplete ="off" is working .. But i want to use java script..and that also not using the timelimit...
          how can i do that...Thanks
          I'm not quite sure about what you want, but try to call a PHP script through Ajax, onload of the body of the survey page, which would do session_destroy ().

          Comment

          • ajd335
            New Member
            • Apr 2008
            • 123

            #6
            Originally posted by hsriat
            I'm not quite sure about what you want, but try to call a PHP script through Ajax, onload of the body of the survey page, which would do session_destroy ().

            Yeah ,one more thing..autocomp lete="off" is not working for

            Code:
            <textarea cols="50" rows="4" name="comment" maxlength="200" autocomplete="off" ></textarea>

            Comment

            Working...