Re: Re: global.asa equivalent?

From: steve (UseLinkToEmail_at_dbForumz.com)
Date: 07/15/04

  • Next message: Kadaitcha Man: "Re: Advice for Graduate Web Developer Interview (PHP/MySQL)"
    Date: Wed, 14 Jul 2004 22:01:07 GMT
    
    

    > On Wed, 14 Jul 2004 21:28:44 GMT, steve <UseLinkToEmail@dbForumz.com> wrote:
    >
    > >> On Wed, 14 Jul 2004 19:48:04 GMT, steve <UseLinkToEmail@dbForumz.com> wrote:
    > >>
    > >>>> Hi, there. In PHP, is there a file that’s equivalent to
    > >>>> global.asa in ASP where you can perform initializations and
    cleanup?
    > >>>
    > >>> I program in both. As far as I know, there is nothing like
    that
    > >>> in PHP. It does make sense since php is lacking [...] session
    variables
    > >>
    > >> No, it isn’t, PHP has session variables.
    > >
    > > Hi Andy, I did not know php has session variables. Please
    advise.
    > > We are not talking about saving variables to cookies? That is
    not a
    > > "session variable"...
    >
    > http://uk2.php.net/session
    >
    > Session variables are not stored in cookies, they’re stored
    serverside, same
    > as ASP.
    >
    > --
    > Andy Hassall <andy@andyh.co.uk> / Space: disk usage analysis tool
    > http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
    Live and learn. Did not know about sessions, Andy. Thanks for the
    link.

    Based on my reading of that docs, sessions can either propagate via
    cookies or via url tags that php would automatically add. But the 2nd
    option requires building php as such (I would guess not available to
    shared hosting users). So just like asp, one needs to be cautious of
    cookies being enabled (unless one has access to php build).

    -- 
    http://www.dbForumz.com/  This article was posted by author's request
    Articles individually checked for conformance to usenet standards
    Topic URL: http://www.dbForumz.com/PHP-global.asa-equivalent-ftopict129432.html
    Visit Topic URL to contact author (reg. req'd).  Report abuse: http://www.dbForumz.com/eform.php?p=432291
    

  • Next message: Kadaitcha Man: "Re: Advice for Graduate Web Developer Interview (PHP/MySQL)"

    Relevant Pages

    • Re: session variables, servlets, jsp to asp
      ... > you session variables created in asp and access them in jsp/servlet. ... As far as I know ASP session variables are stored in the ASP server. ... Cookies, on the other hand, are stored in the client's browser, and ...
      (comp.lang.java.programmer)
    • Re: Session Variable vs Cookie
      ... Sessions are not really cookies. ... server can then close them out and release their resources frequently. ... > Are Session variables the same as a cookie? ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: cookies between ast and asp.net
      ... Cookies you cant share between asp and asp.net applications. ... > between two asp sites it works fine,> so I can use the sessions direct. ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: cookies between ast and asp.net
      ... > how I have to handle cookies between asp and asp.net? ... > between two asp sites it works fine, ... If you mean specifically the session cookies, there is not much use: ... directly share sessions between asp and asp.net sites. ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Accessing ASP.NET Session or Application under old ASP
      ... But that's no different that how it's always been using Sessions. ... Cookies can be spoofed in ASP and in ASP.NET. ... And even with SSL, if I'm an attacker and I've somehow acquired someone else's cookie I can present as if it were my own. ... these issues are unrelated to ASP or ASP.NET. ...
      (microsoft.public.dotnet.framework.aspnet)