Little help on sessions?

This is a discussion on "Little help on sessions?" within the PHP Forum section. This forum, and the thread "Little help on sessions? are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 2nd, 2006, 22:12
Up'n'Coming Member
Join Date: Sep 2005
Location: athens
Age: 25
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Little help on sessions?

Hi,
I am trying ac ouple of days now to learn some things on SESSIONS,but I think I am not getting it very clearly.
I have a PHP page tha contains a form.
Users enter data in the form, which are then written in a file (the file is created at the time a user enters some data)
The file is then given as an input to an external program
The external program runs and gives some results which are then stored in another file (that is created when the external program finishes)
What I want to do is to somehow create these files and, when the user exits from the browser, then both files that refer to this user, will be deleted.
Most guys in the forums suggested I use sessions, and go like this :
1) User "nick" enters data in the form
2) Temporary file $nick_session_id.FILE is created and passed on to the external program as input
3) The external program saves the results in another temporary file, say $nick_session_id.RESULTS
4) When nick sees anything he wants to see in his browser, concerning the results etc and exits, then
both $nick_session_id.FILE & $nick_session_id.RESULTS will be deleted automatically (so the administrator doesn't have to erase files from the hard disk
all the time).

Pls note that I am not describing any kind of user authentication system, ie there is no log in/out in my page.
Also, the users, as described above,cannot write anything to the input file once they write their data in the form and push "Submit".
Of course, they cannot write anything to the results file as well, as this file contains the results given by the external program.

i apologize for the length of my message but I wanted to make it as clear as possible...
Many thanks!
Reply With Quote

Reply

Tags
little, help, sessions

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sessions djme PHP Forum 4 Feb 25th, 2006 12:10
xsl, php sessions (please help) marco_van_mayo Other Programming Languages 0 Feb 19th, 2006 14:35
php sessions fragalot PHP Forum 7 Nov 8th, 2005 20:43
PHP Sessions benbacardi PHP Forum 5 Aug 28th, 2005 09:29
Sessions vor ASP.NET Forum 3 Aug 19th, 2003 20:10


All times are GMT. The time now is 11:45.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43