Re: [Phplib-users] couple of questions
Brought to you by:
nhruby,
richardarcher
From: Giancarlo <gia...@na...> - 2003-03-06 12:36:48
|
The technique I use is: have a session variable array and a user variable array, store anything needed befor login in the sess one, keep it in sync with the user one or fixate there the ones vars needed. User persistent data are always on db, though. In thus case I'd just make persistent the 2-3 $_ arrays I need What do you mean register_globals is not supported? by your app, or by your app? It is by phplib. Dennis Gearon wrote: > When a page is doing a login because the user filled in information on a > public/nobody page and is going to a private/login-required page, all > the cookie/get/post has to be saved into the session vars until login is > complete or not. > > So getting rid of register_globals would require that circumstance, i.e. > loggin in, to : > Save the http_referer > Save the post/get/cookie vars > Maybe save the whole CGI environment, > Do a login/registration > Send the user back to the starting page, with variables intact > send the user to the target page, with variables intact. > > Is this a normal scenario, to save GPC vars, or just the global vars? If > just global vars, there has to be a way to store and retrieve GPC/CGI > vars, and restore them to the correct 'HTTP_*_VARS' or '_*' arrays. I'm > not even sure if those are writeable, which might make the point moot! > > "Tommy !!" wrote: > >>1/ Yes, albeit only the template system. It's awesome, but I have my own >>little quirks with it - sometimes it tries to parse user input as template >>variables [e.g. when you enter '{EVILHAKR}' in a text input field, and that >>field is stored in a database - when it is displayed on a page, PHPLib will >>attempt to display it]. But there's solutions for that - converting the >>user's '{' and '}' characters into '{' and '}' for example. >> >>2/ I didn't need it turned on for the templates, but I assume that other >>modules may still require it? Not sure. >> >>Tom L >> >> >>>1/ is 7.4 pre 2 being used by anybody in production yet? Comments? >>> >>>2/ is the need for register globals going to be entirely wiped out when >>>this is released, (I'll be >>>turning it off in my installation)? >>> >>> >>> >>> >>> >>>------------------------------------------------------- >>>This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger >>>for complex code. Debugging C/C++ programs can leave you feeling lost and >>>disoriented. TotalView can help you find your way. Available on major UNIX >>>and Linux platforms. Try it free. www.etnus.com >>>_______________________________________________ >>>Phplib-users mailing list >>>Php...@li... >>>https://lists.sourceforge.net/lists/listinfo/phplib-users >> >>_________________________________________________________________ >>Hotmail now available on Australian mobile phones. Go to >>http://ninemsn.com.au/mobilecentral/hotmail_mobile.asp > > |