Advertisement  
  Home arrow Forums
Main Menu
Login
Recent Forum Posts
 Saturday, 13 March 2010
BostonPHP Forum  


Questions from a PHP Newbie - 2007/02/28 11:11 Hello Boston PHP!

It's great to have found this tool.

I have programmed PHP based off of a book called
PHP and MySQL Web Development by Luke Welling/Laura Thomson.

Since reading a third of the book I've programmed other things,
always using the book as referencel, and I have stumbled upon some questions that I have no answers to.

sessions
-----------
If I have a multi-page form, do I need to start a new session with every page or do I simply pass the session value or does the session on the first page get passed (say it's set to last for 6 hrs)?

secure
----------
what is secure? how do i build a form that intakes credit card information and know that, upon submission, the info is secure? Does having SSL ensure that the info is secure? Does using some PHP encryption ensure that the info is secure? How do I know that my info is secure?

Enough for now. I'd love to hear some answers. I'd love it if someone were willing to sit with me and have a discussion.

--sandra
  | | The administrator has disabled public write access.
Re:Questions from a PHP Newbie - 2009/02/26 18:01 Once you start the session and create the session ID, you have to have a session_start function at the top of each page that you want to use sessions. Remember that <?php session_start(); ?> has to be at the very top of the page or PHP will throw an error message. I'm not sure what you mean about the 6 hours. Sessions are stored only while the browser is open (you can store info in a database) As far as I know cookies can be stored for periods of time before they expire.
As for security, you'll need you webpages to have a secure socket layer (SSL) This encrypts the data that is passed in a shopping cart. You'll need to see https:// in your url - that's how you know it's secure.
Not sure if I answered you rquestions or not - let me know
NOTE: I didn't realize the date of the posted question

Post edited by: kevinritt, at: 2009/02/27 01:34
  | | The administrator has disabled public write access.
Re:Questions from a PHP Newbie - 2009/09/14 22:24 kevinritt wrote:
Once you start the session and create the session ID, you have to have a session_start function at the top of each page that you want to use sessions. Remember that <?php session_start(); ?> has to be at the very top of the page or PHP will throw an error message. I'm not sure what you mean about the 6 hours. Sessions are stored only while the browser is open (you can store info in a database) As far as I know cookies can be stored for periods of time before they expire.
As for security, you'll need you webpages to have a secure socket layer (SSL) This encrypts the data that is passed in a shopping cart. You'll need to see https:// in your url - that's how you know it's secure.
Not sure if I answered you rquestions or not - let me know
NOTE: I didn't realize the date of the posted question<br><br>Post edited by: kevinritt, at: 2009/02/27 01:34


I think you answered most of the questions.
I'm also working on the same issue with sessions for every 6 hours. After that the session expires. Do you have a solution for this?
  | | The administrator has disabled public write access.
Re:Questions from a PHP Newbie - 2009/09/15 20:50 ahm i just wanna ask if you can help me on my major...

i'm a freshman IT student on our university...
and PHP was introduced to us...
my professor told me us to do a module where we can as if a user
if born before or after that particular date in order for us to know if the are underage or at legal age...
it's like the captcha module being used nowadays on most forum sites before registration...

uhm can you help me?
please?

thank you so much...
  | | The administrator has disabled public write access.
Show your support
Polls
What's the average PHP rate in Boston
 
What's the PHP rockstar rate in Boston
 
Tag Cloud
Podcast
The BostonPHP podcast Podcast
Full Feed
 
Go to top of page  Home | Search | Forums | Job Board | Newsletter | Latest News | Reservations | Podcast Archive | MyAccount |