Welcome! Log In Create A New Profile

Advanced

Topic 5C

Posted by allenvd 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Topic 5C
August 23, 2006 09:25AM
Completed.
Re: Topic 5C
September 20, 2006 08:40PM
Completed.

Just to bring things up to date:

The use of session_register() is not really used anymore, eg:

$test = "Hello World";
session_register("test"winking smiley;


The use of $_SESSION is much preferred, as of PHP 4.1.0, eg:
$_SESSION["test"] = "Hello there";


And very importantly, use session_start() to create a session or resume the current one based on the current session id that's being passed via a request, such as GET, POST, or a cookie.

Hope this helps!
Re: Topic 5C
September 21, 2006 04:49PM
Topic 5C completed
Re: Topic 5C
October 03, 2006 04:43PM
Topic completed
avatar Re: Topic 5C
October 03, 2006 08:52PM
Done.

Ja thanx Dennis, had some trouble with the session stuff. Got it working in the end. Feels like a mechanic trying to fix a broken machine with an old manual.
Re: Topic 5C
October 05, 2006 01:44PM
Help!

I typed the code as in the assignment (I do not understand what Dennis is talking about):

I get this:
Warning: open(/tmp\sess_3249d9895fed3ac7557a2e14f659d3e9, O_RDWR) failed: No such file or directory (2) in C:\FoxServ\www\StudentPHP\session.php on line 4

Then I get the HTML bit with the buttons, etc.

Beneath this I get:
Warning: open(/tmp\sess_3249d9895fed3ac7557a2e14f659d3e9, O_RDWR) failed: No such file or directory (2) in C:\FoxServ\www\StudentPHP\session.php on line 4

I can change colors, but if I click on the [Refresh, do not change colors] link, the colors revert to white.

[Go to other page] link displays:
Warning: open(/tmp\sess_942de149d10b26c4f8b4cdbae8389f9d, O_RDWR) failed: No such file or directory (2) in C:\FoxServ\www\StudentPHP\session2.php on line 5

and
Warning: open(/tmp\sess_942de149d10b26c4f8b4cdbae8389f9d, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0


Any help will be appreciated.
Sorry, only registered users may post in this forum.

Click here to login