/    Sign up×
Community /Pin to ProfileBookmark

Problem with session in php5

Good day,
can anyone tell me how to solve my problem?

i use the php4 to test this simple code ,is work!
After i uninstall and install php5,the error occur.


———————————————

my code:
(*for testing session only)

<?php
session_start();
print session_id();

?>
————————————————

Error message:
vn5690j2f0beqe5qd0b36m10t3PHP
Warning: Module ‘mysql’ already loaded in Unknown
on line 0 PHP Warning: session_start()
[function.session-start]:
open(C:DOCUME~1CTYLOCALS~1Tempphpuploadsess_vn5690j2f0beqe5qd0b36m10t3, O_RDWR)
failed: No such file or directory (2) in
C:ctytest.php on line 2 PHP
Warning: Unknown: open(C:DOCUME~1CTYLOCALS~1Tempphpuploadsess_vn5690j2f0beqe5qd0b36m10t3, O_RDWR)
failed: No such file or directory (2) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files).
Please verify that the current setting of session.save_path is correct (C:DOCUME~1CTYLOCALS~1Tempphpupload)

in Unknown on line 0
———————————————————-

I did check my php(using phpinfo()?
And i found that
session.save_path C:DOCUME~1CTYLOCALS~1Tempphpupload

I think is something wrong here?
this path should be C:PHPsessiondata(**when i using php4 ,it is in C:PHPsessiondata)

If really is cause by this ,how i edit the php.ini?
If no,what is the problem?

I currently using php5+mysql4+IIS

Beside,can guide me to install php5?(May be is installation not correct?)

to post a comment
PHP

1 Comments(s)

×

Success!

Help @cty spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...