Date: 10/28/99
- Next message: Mark Walter: "Re: [PHPLIB] PHPLIB-Warning: Variable passed to reset() is not an array"
- Previous message: Kristian Koehntopp: "Re: [PHPLIB] Self registration"
- In reply to: Teodor Cimpoesu: "Re: [PHPLIB] How to edit a user's variables"
- Next in thread: Philip Strnad: "Re: [PHPLIB] Would like to see Examples of User Self-Registration?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ok, I've done pretty much what you said, but I used as much of the phplib
classes so it will be portable and all. Here is what I do to edit another
user's session variables...
$editsession = new Example_User;
$editsession->start(" (the user's id goes here) ");
$downloads = 3; // edit registered variable values
$editsession->register("otherdownloads"); // even register new variables
$editsession->freeze(); // save changes back to the user's record
And that's all there is to it.
dave.
On Thu, 28 Oct 1999 13:34:29 +0300 teo <email protected> (Teodor Cimpoesu) wrote:
>orrd <email protected> wrote:
>>
>> I can't possibly be the first person to ask this... but here goes...
>>
>> Are there any scripts out there that show how to let an "admin" user edit
>the
>> variables frozen for any given user. In other words, if I have a variable
>"s"
>> registered for each user, is there an administrative script to let me
>change
>> the
>> value of "s" for any given user? There has to be a way right??
>yap, if you want to do it bvy hand you can write a script to do:
> - select the val of frozen session variables;
> - decode it using it's decoding method
> - identify the code which does the actual storage
> - modify it , encode it back
> - store it back
>But to to this automatically you will need a method to guess the php
>code
>which deals with you `s' variable and also be consistent with the
>others.
>
>--
>CIMPOESU Teodor, Web Programmer
>
>@ DIGICOM S.A. Bucharest, Romania
>@ Internet, site development
>@ teo <email protected>,+(401)-330.47.28
>
>official home page ~ http://www.digiro.net/
>Internet web page ~ http://internet.digiro.net/
>-
>PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
>To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
>the body, not the subject, of your message.
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Mark Walter: "Re: [PHPLIB] PHPLIB-Warning: Variable passed to reset() is not an array"
- Previous message: Kristian Koehntopp: "Re: [PHPLIB] Self registration"
- In reply to: Teodor Cimpoesu: "Re: [PHPLIB] How to edit a user's variables"
- Next in thread: Philip Strnad: "Re: [PHPLIB] Would like to see Examples of User Self-Registration?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

