Connecting Tech Pros Worldwide Help | Site Map

Sessions not working in windows vista

Angkor
Guest
 
Posts: n/a
#1: Jun 2 '08
Hi All,

I am trying to pass value from a page to another page through session
variable.

session_start();
$_SESSION["ses_aid"] = $value("aid");
.....

$_SESSION["ses_aid"] has value within its original page. But
$_SESSION["ses_aid"] has empty value in another page. Even I have
placed session_start(); in every page.

I have developed the site in Windows Vista Home Premium with latest
version of both PHP and mySQL.

Could you please help me because i need it urgently?
Rik Wasmus
Guest
 
Posts: n/a
#2: Jun 2 '08

re: Sessions not working in windows vista


On Tue, 22 Apr 2008 06:23:15 +0200, Angkor <eapsokha@gmail.comwrote:
Quote:
Hi All,
>
I am trying to pass value from a page to another page through session
variable.
>
session_start();
$_SESSION["ses_aid"] = $value("aid");
....
>
$_SESSION["ses_aid"] has value within its original page. But
$_SESSION["ses_aid"] has empty value in another page. Even I have
placed session_start(); in every page.
>
I have developed the site in Windows Vista Home Premium with latest
version of both PHP and mySQL.
>
Could you please help me because i need it urgently?
1) Check wether the cookie is accepted by the browser.
2) Check wether the output of session_id() stays the same.
3) Check wether there's a file created in session.save_path, and possible
user write permissions for this path.
--
Rik Wasmus
Captain Paralytic
Guest
 
Posts: n/a
#3: Jun 2 '08

re: Sessions not working in windows vista


On 22 Apr, 04:23, Angkor <eapso...@gmail.comwrote:
Quote:
Hi All,
>
I am trying to pass value from a page to another page through session
variable.
>
session_start();
$_SESSION["ses_aid"] = $value("aid");
....
>
$_SESSION["ses_aid"] has value within its original page. But
$_SESSION["ses_aid"] has empty value in another page. Even I have
placed session_start(); in every page.
>
I have developed the site in Windows Vista Home Premium with latest
version of both PHP and mySQL.
>
Could you please help me because i need it urgently?
You are using IIS?
Captain Paralytic
Guest
 
Posts: n/a
#4: Jun 2 '08

re: Sessions not working in windows vista


On 22 Apr, 14:40, Angkor <eapso...@gmail.comwrote:
Quote:
On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
>
>
>
Quote:
On 22 Apr, 04:23, Angkor <eapso...@gmail.comwrote:
>
Quote:
Quote:
Hi All,
>
Quote:
Quote:
I am trying to pass value from a page to another page through session
variable.
>
Quote:
Quote:
session_start();
$_SESSION["ses_aid"] = $value("aid");
....
>
Quote:
Quote:
$_SESSION["ses_aid"] has value within its original page. But
$_SESSION["ses_aid"] has empty value in another page. Even I have
placed session_start(); in every page.
>
Quote:
Quote:
I have developed the site in Windows Vista Home Premium with latest
version of both PHP and mySQL.
>
Quote:
Quote:
Could you please help me because i need it urgently?
>
Quote:
You are using IIS?
>
- How to check whether session_id(); stay the same? If not, what
should i do?
- Yes, I am using IIS.
I'd advise you to install wampserver or XAMPP, if that's an option.
Angkor
Guest
 
Posts: n/a
#5: Jun 2 '08

re: Sessions not working in windows vista


On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
Quote:
On 22 Apr, 04:23, Angkor <eapso...@gmail.comwrote:
>
>
>
Quote:
Hi All,
>
Quote:
I am trying to pass value from a page to another page through session
variable.
>
Quote:
session_start();
$_SESSION["ses_aid"] = $value("aid");
....
>
Quote:
$_SESSION["ses_aid"] has value within its original page. But
$_SESSION["ses_aid"] has empty value in another page. Even I have
placed session_start(); in every page.
>
Quote:
I have developed the site in Windows Vista Home Premium with latest
version of both PHP and mySQL.
>
Quote:
Could you please help me because i need it urgently?
>
You are using IIS?
- How to check whether session_id(); stay the same? If not, what
should i do?
- Yes, I am using IIS.
Erwin Moller
Guest
 
Posts: n/a
#6: Jun 2 '08

re: Sessions not working in windows vista


Captain Paralytic schreef:
Quote:
On 22 Apr, 14:40, Angkor <eapso...@gmail.comwrote:
Quote:
>On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
>>
>>
>>
Quote:
>>On 22 Apr, 04:23, Angkor <eapso...@gmail.comwrote:
>>>Hi All,
>>>I am trying to pass value from a page to another page through session
>>>variable.
>>>session_start();
>>>$_SESSION["ses_aid"] = $value("aid");
>>>....
>>>$_SESSION["ses_aid"] has value within its original page. But
>>>$_SESSION["ses_aid"] has empty value in another page. Even I have
>>>placed session_start(); in every page.
>>>I have developed the site in Windows Vista Home Premium with latest
>>>version of both PHP and mySQL.
>>>Could you please help me because i need it urgently?
>>You are using IIS?
>- How to check whether session_id(); stay the same? If not, what
>should i do?
>- Yes, I am using IIS.
>
I'd advise you to install wampserver or XAMPP, if that's an option.
Well he didn't ask for that, did he?
He is using IIS, and PHP works perfectly well on IIS (well almost
perfectly).

I would advise him to check Riks questions.

Regards,
Erwin Moller
Rik Wasmus
Guest
 
Posts: n/a
#7: Jun 2 '08

re: Sessions not working in windows vista


On Tue, 22 Apr 2008 21:01:53 +0200, venti
<timgregory@shieldinvestmentgroup.comwrote:
Quote:
Quote:
>Well he didn't ask for that, did he?
>He is using IIS, and PHP works perfectly well on IIS (well almost
>perfectly).
>>
>I would advise him to check Riks questions.
>
He may not have asked, but sweet heavens just move to linux and be
done with it.
Nonsense. While I prefer a LAMP server, running a WIMP is not that
difficult either.
Quote:
Short of that, don't forget:
session_register("ses_aid");
session_register() is antiqued now. If you're still using it: don't.
--
Rik Wasmus
venti
Guest
 
Posts: n/a
#8: Jun 2 '08

re: Sessions not working in windows vista


Quote:
Well he didn't ask for that, did he?
He is using IIS, and PHP works perfectly well on IIS (well almost
perfectly).
>
I would advise him to check Riks questions.
>
Regards,
Erwin Moller
He may not have asked, but sweet heavens just move to linux and be
done with it.

Short of that, run WAMP.

Short of that, don't forget:
session_register("ses_aid");
Rik Wasmus
Guest
 
Posts: n/a
#9: Jun 2 '08

re: Sessions not working in windows vista


On Tue, 22 Apr 2008 22:14:36 +0200, venti
<timgregory@shieldinvestmentgroup.comwrote:
Quote:
On Apr 22, 3:19 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
Quote:
>On Tue, 22 Apr 2008 21:01:53 +0200, venti
>>
><timgreg...@shieldinvestmentgroup.comwrote:
Quote:
>Well he didn't ask for that, did he?
>He is using IIS, and PHP works perfectly well on IIS (well almost
>perfectly).
>>
Quote:
>I would advise him to check Riks questions.
>>
Quote:
He may not have asked, but sweet heavens just move to linux and be
done with it.
>>
>Nonsense. While I prefer a LAMP server, running a WIMP is not that
>difficult either.
>>
Quote:
Short of that, don't forget:
session_register("ses_aid");
>>
>session_register() is antiqued now. If you're still using it: don't.
>
session_register may be depracated, but if you're running a windows
server for anything, you're crazy.
Nonsense. A nice Windows Server with Exchange, BackOffice, and all that
Office / Outlook / SQL integration stuff is perfectly suitable for an
mid-sized company (and no matter what people say often more cheaper,
reliable, and easier to maintain by the people there themselves than all
that fancy free and/or open source equivalents). If they need a website
tightly integrated into that system (identify users etc.), using Windows &
IIS is likely to be a lot easier.
Quote:
Sure it's easy, you just run the
wamp executable. But then things start to get weird, like session
data dissapears. So if you're still using WAMP/WIMP for production,
don't.
Depends on the circumstances. For a dedicated webserver (and only that)
I'd say you were correct, but don't underestimate the wants, needs and
other roles of the same machine in intranets.
--
Rik Wasmus
venti
Guest
 
Posts: n/a
#10: Jun 2 '08

re: Sessions not working in windows vista


On Apr 22, 3:19 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
Quote:
On Tue, 22 Apr 2008 21:01:53 +0200, venti
>
<timgreg...@shieldinvestmentgroup.comwrote:
Quote:
Quote:
Well he didn't ask for that, did he?
He is using IIS, and PHP works perfectly well on IIS (well almost
perfectly).
>
Quote:
Quote:
I would advise him to check Riks questions.
>
Quote:
He may not have asked, but sweet heavens just move to linux and be
done with it.
>
Nonsense. While I prefer a LAMP server, running a WIMP is not that
difficult either.
>
Quote:
Short of that, don't forget:
session_register("ses_aid");
>
session_register() is antiqued now. If you're still using it: don't.
--
Rik Wasmus
session_register may be depracated, but if you're running a windows
server for anything, you're crazy. Sure it's easy, you just run the
wamp executable. But then things start to get weird, like session
data dissapears. So if you're still using WAMP/WIMP for production,
don't.
Jerry Stuckle
Guest
 
Posts: n/a
#11: Jun 2 '08

re: Sessions not working in windows vista


venti wrote:
Quote:
On Apr 22, 3:19 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
Quote:
>On Tue, 22 Apr 2008 21:01:53 +0200, venti
>>
><timgreg...@shieldinvestmentgroup.comwrote:
Quote:
>>>Well he didn't ask for that, did he?
>>>He is using IIS, and PHP works perfectly well on IIS (well almost
>>>perfectly).
>>>I would advise him to check Riks questions.
>>He may not have asked, but sweet heavens just move to linux and be
>>done with it.
>Nonsense. While I prefer a LAMP server, running a WIMP is not that
>difficult either.
>>
Quote:
>>Short of that, don't forget:
>>session_register("ses_aid");
>session_register() is antiqued now. If you're still using it: don't.
>--
>Rik Wasmus
>
session_register may be depracated, but if you're running a windows
server for anything, you're crazy. Sure it's easy, you just run the
wamp executable. But then things start to get weird, like session
data dissapears. So if you're still using WAMP/WIMP for production,
don't.
>
Sometimes there are very valid reasons for running a Windows server.
Linux is NOT for everyone!

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Captain Paralytic
Guest
 
Posts: n/a
#12: Jun 2 '08

re: Sessions not working in windows vista


On 22 Apr, 15:24, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
Quote:
Captain Paralytic schreef:
>
>
>
Quote:
On 22 Apr, 14:40, Angkor <eapso...@gmail.comwrote:
Quote:
On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
>
Quote:
Quote:
>On 22 Apr, 04:23, Angkor <eapso...@gmail.comwrote:
>>Hi All,
>>I am trying to pass value from a page to another page through session
>>variable.
>>session_start();
>>$_SESSION["ses_aid"] = $value("aid");
>>....
>>$_SESSION["ses_aid"] has value within its original page. But
>>$_SESSION["ses_aid"] has empty value in another page. Even I have
>>placed session_start(); in every page.
>>I have developed the site in Windows Vista Home Premium with latest
>>version of both PHP and mySQL.
>>Could you please help me because i need it urgently?
>You are using IIS?
- How to check whether session_id(); stay the same? If not, what
should i do?
- Yes, I am using IIS.
>
Quote:
I'd advise you to install wampserver or XAMPP, if that's an option.
>
Well he didn't ask for that, did he?
He is using IIS, and PHP works perfectly well on IIS (well almost
perfectly).
And in one of your responses over on comp.lang.javascript, the OP did
not say that the advce he was looking for was for him to use, but that
did not stop you offering incorrect advice.

IIS can operate OK with PHP, but there are so many other things that
it does not do anywhere near as well as apache, I offered the advice I
did. I didn't offer it to you, so I suggest you just ignore it.

Erwin Moller
Guest
 
Posts: n/a
#13: Jun 2 '08

re: Sessions not working in windows vista


Captain Paralytic schreef:
Quote:
On 22 Apr, 15:24, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
Quote:
>Captain Paralytic schreef:
>>
>>
>>
Quote:
>>On 22 Apr, 14:40, Angkor <eapso...@gmail.comwrote:
>>>On Apr 22, 5:05 pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
>>>>On 22 Apr, 04:23, Angkor <eapso...@gmail.comwrote:
>>>>>Hi All,
>>>>>I am trying to pass value from a page to another page through session
>>>>>variable.
>>>>>session_start();
>>>>>$_SESSION["ses_aid"] = $value("aid");
>>>>>....
>>>>>$_SESSION["ses_aid"] has value within its original page. But
>>>>>$_SESSION["ses_aid"] has empty value in another page. Even I have
>>>>>placed session_start(); in every page.
>>>>>I have developed the site in Windows Vista Home Premium with latest
>>>>>version of both PHP and mySQL.
>>>>>Could you please help me because i need it urgently?
>>>>You are using IIS?
>>>- How to check whether session_id(); stay the same? If not, what
>>>should i do?
>>>- Yes, I am using IIS.
>>I'd advise you to install wampserver or XAMPP, if that's an option.
>Well he didn't ask for that, did he?
>He is using IIS, and PHP works perfectly well on IIS (well almost
>perfectly).
>
And in one of your responses over on comp.lang.javascript, the OP did
not say that the advce he was looking for was for him to use, but that
did not stop you offering incorrect advice.
What are you talking about?
I do not understand the above sentence very well, but I think it boils
down to your opinion I gave somebody bad advice. Correct?

How is that relevant to this discussion what I wrote in c.l.j?

I am at a loss. :-/

It seems to me you are offended easily, and you didn't like it I said
your Apache advice doesn't solve the OPs problem since he is on IIS.
If that is the case: Sorry mate, I didn't want to offend you.
Quote:
>
IIS can operate OK with PHP, but there are so many other things that
it does not do anywhere near as well as apache, I offered the advice I
did. I didn't offer it to you, so I suggest you just ignore it.
Well, even though I agree with your advise I will ignore it, if you like
that.

Lighten up a little Captain, it is almost weekend.

Erwin Moller
Closed Thread