Perennially Sane

Reply to comment

Sessions

There is another, better way to store these form fields and status messages: Sessions.

I am quite ignorant when it comes to using PHP Sessions, and I didn't even know they existed until recently - a technology that will store persistent variables over several pages, as long as the user remains logged in.

PHP Sessions, client-side, work by storing a big number (the Session ID) either in a cookie or as a Get parameter that gets added to each link on the page. The point is that the values no longer need to be sent separately to the user, but can be lumped into the session.

Reply

The content of this field is kept private and will not be shown publicly.
  • You may use these tags: [abbr], [acronym], [b], [center], [code], [color], [cpp], [css], [define], [diff], [dtd], [font], [h3], [h4], [h5], [h6], [hr], [html], [i], [img], [java], [javascript], [justify], [left], [list], [mysql], [node], [ol], [perl], [php], [python], [quote], [right], [s], [sh], [size], [sql], [sub], [sup], [table], [u], [ul], [url], [wikipedia], [xml]
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Easily link to terms in various wikis. For help, see <a href="/interwiki/3">interwiki</a>.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Powered by Drupal, an open source content management system

eXTReMe Tracker