Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Sorry, I can't provide you with a valid answer to your direct question, but let me at least suggest a few things related to this:

Also, does anyone know of a way I can save state while a person is outside of a CGI page?

I have looked at the CGI::Persistent before and think that it may be worth your consideration. Simply put, it allows you to store client state on your server (inside data files). You simply have to tie this 'state data' to a session id of your user. The way I did it was assign a unique session id to new clients (say, right after they are successfully signed in) and save that id in a cookie on their side. On the server side, you create a new CGI::Persistent object to store this client's state. Whenever a user returns to your page, you simply look up his/her session id cookie value and use it to refer to earlier saved state data(using the same CGI::Persistent object).

Note: where is your $redirect variable set in the code? You call your checkCookies() in void context althought the sub returns a value. Shouldn't you save it in your $redirect variable?

"There is no system but GNU, and Linux is one of its kernels." -- Confession of Faith

In reply to Re: Redirection problems with Perl, Netscape and IE by vladb
in thread Redirection problems with Perl, Netscape and IE by newrisedesigns

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-18 20:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found