Jump to content

Best way of Passing Variables


Mr.Sonic

Recommended Posts

Hi First post here. Long time reader!

 

I'm looking to gauge the general practices of dealing with variables between pages.

 

I'd always pass my variables through the POST. Im normally always doing a post back and processing the data at the top of the page.

 

I never liked the query string as it open to manipulation, but can see its use for a search results page and saving the url.

 

I came from a ASP background and we would only use session variables for holding user login information as the windows server had a habit of restarting the pool and loosing the session. We didn't want this happening, for example, when doing an e-commerce transaction.  We always felt the post was the most robust method.

 

Now Im using php and all the great features it has. I was looking to see what the more experience php developers used and am I right sticking to the post method, or is utilising session a more modern way of doing things.

 

I've a few years experience doing web dev, just thought I touch base on a few issues to make sure I'm still heading in the right direction.

 

Thanks for any advice guys!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.