php session problems when working with a windows client program

From: nao921 (lawrencekcleung_at_yahoo.com)
Date: 07/05/04


Date: 5 Jul 2004 09:59:03 -0700

Hi everyone,

I am currently involved in a project that involves a windows client
program written in delphi and a web application written in php. I
have made several php pages for the delphi program to do requests via
the http component from INDY. the problems I am having are:

1) the first request from delphi app to php web app is the
authenication. In which user sends username + password to the php app.
 If authenication is valid, a session is started and the sid is
returned to the client. All subsequent requests from delphi app to
php web app will have this sid as one of the arguments in the POST
form request (this is one of the function in the INDY component for
delphi). Even the sid is passed to the subsequent pages, the session
global array is still undefined. However if I open up a web browser
and create my own string request to the login page then the next page,
the global array would be defined (using var_dump + echo to see the
array) what is the problem?

2) does the above problem has anything to do with the http referer
field?

3) this problem that I am having has been asked before on google
group, but somehow the person who asked it didnt' put down the
solution for it. (this only involves the web only) when I login on a
page and return with a session id, then I log out.. the user is
redirected to the login page again. However if the user login again
(with a different login account), he would be presented with the same
session ID as before. a different sesson id is presented only if the
user restart the browser. why is that happening?



Relevant Pages

  • Re: php session problems when working with a windows client program
    ... > program written in delphi and a web application written in php. ... > php web app will have this sid as one of the arguments in the POST ... > and create my own string request to the login page then the next page, ...
    (comp.lang.php)
  • Re: php session problems when working with a windows client program
    ... > program written in delphi and a web application written in php. ... > 1) the first request from delphi app to php web app is the ... > php web app will have this sid as one of the arguments in the POST ...
    (comp.lang.php)
  • Re: PHP - D3 subroutine calls?
    ... MVWWW does the login once and then makes the connection available for ... don't think any of the MV vendors have adequately minimized the pain ... your PHP call. ...
    (comp.databases.pick)
  • Re: Why PHP?
    ... Obviously, you get a full use license if you buy Delphi, but you would still make money off those entities using Lazarus if they develop commercial software. ... I can't yet comment or confirm leaks on future PHP products, but *anything* we do in the Delphi world has be centered around a VCL framework, visual design, and allow component development. ... By PHP extensions, do you mean extensions for the IDE written in PHP? ... If CodeGear comes up with a PHP IDE, wouldn't it be great if Delphi ...
    (borland.public.delphi.non-technical)
  • Re: Delphi for PHP
    ... I try to find a manual for "Delphi for PHP" or a tutorial. ... of printed manual with this kind distribution but I got none. ... Embargadero/Codegear folks have just put the manuals on the ...
    (comp.lang.pascal.delphi.misc)

Loading