Sessions not working in windows vista

Sessions not working in windows vista

am 22.04.2008 06:23:15 von Angkor

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?

Re: Sessions not working in windows vista

am 22.04.2008 07:33:20 von luiheidsgoeroe

On Tue, 22 Apr 2008 06:23:15 +0200, Angkor wrote:

> Hi All,
>
> I am trying to pass value from a page to another page through session
> variable.
>
> session_start();
> $_SESSION["ses_aid"] =3D $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 possibl=
e =

user write permissions for this path.
-- =

Rik Wasmus

Re: Sessions not working in windows vista

am 22.04.2008 11:05:20 von Captain Paralytic

On 22 Apr, 04:23, Angkor wrote:
> 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?

Re: Sessions not working in windows vista

am 22.04.2008 16:40:32 von Angkor

On Apr 22, 5:05 pm, Captain Paralytic wrote:
> On 22 Apr, 04:23, Angkor wrote:
>
>
>
> > 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.

Re: Sessions not working in windows vista

am 22.04.2008 17:08:44 von Captain Paralytic

On 22 Apr, 14:40, Angkor wrote:
> On Apr 22, 5:05 pm, Captain Paralytic wrote:
>
>
>
> > On 22 Apr, 04:23, Angkor wrote:
>
> > > 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.

Re: Sessions not working in windows vista

am 22.04.2008 17:24:52 von Erwin Moller

Captain Paralytic schreef:
> On 22 Apr, 14:40, Angkor wrote:
>> On Apr 22, 5:05 pm, Captain Paralytic wrote:
>>
>>
>>
>>> On 22 Apr, 04:23, Angkor wrote:
>>>> 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

Re: Sessions not working in windows vista

am 22.04.2008 21:01:53 von venti

> 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");

Re: Sessions not working in windows vista

am 22.04.2008 21:19:24 von luiheidsgoeroe

On Tue, 22 Apr 2008 21:01:53 +0200, venti
wrote:
>> 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.

> 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

Re: Sessions not working in windows vista

am 22.04.2008 22:14:36 von venti

On Apr 22, 3:19 pm, "Rik Wasmus" wrote:
> On Tue, 22 Apr 2008 21:01:53 +0200, venti
>
> wrote:
> >> 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.
>
> > 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.

Re: Sessions not working in windows vista

am 22.04.2008 22:41:11 von luiheidsgoeroe

On Tue, 22 Apr 2008 22:14:36 +0200, venti
wrote:
> On Apr 22, 3:19 pm, "Rik Wasmus" wrote:
>> On Tue, 22 Apr 2008 21:01:53 +0200, venti
>>
>> wrote:
>> >> 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.
>>
>> > 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.

> 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

Re: Sessions not working in windows vista

am 23.04.2008 00:27:31 von Jerry Stuckle

venti wrote:
> On Apr 22, 3:19 pm, "Rik Wasmus" wrote:
>> On Tue, 22 Apr 2008 21:01:53 +0200, venti
>>
>> wrote:
>>>> 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.
>>
>>> 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
==================

Re: Sessions not working in windows vista

am 23.04.2008 11:49:11 von Captain Paralytic

On 22 Apr, 15:24, Erwin Moller
wrote:
> Captain Paralytic schreef:
>
>
>
> > On 22 Apr, 14:40, Angkor wrote:
> >> On Apr 22, 5:05 pm, Captain Paralytic wrote:
>
> >>> On 22 Apr, 04:23, Angkor wrote:
> >>>> 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.

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.

Re: Sessions not working in windows vista

am 23.04.2008 14:46:59 von venti

Fair enough. It's the same old flame bait, linux vs MS. Religious
war, nobody will ever back down. But what do you do when MS
discontinues their products, like they do every 5 years? Plus, st
ability is huge. I worked in a Savings and Loan (4000+ users) running
SQL server / c++ fat clients, with a smattering of .Net web apps, and
I can't rememeber a day when several of the DB servers weren't hosed.
It was a mess.