[PHP] Converted version of mysqlhotcopy.pl

2002-12-11 Thread Riaan Stander
Hi all

Does any of you know if anybody has taken the time to convert the perl
script mysqlhotcopy.pl to PHP. And if so where can one find it.

Thanks
Riaan Stander



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] New window, new session

2002-06-25 Thread Riaan Stander

Hi there

I know this is not a php specific question, but I don't know where else to
ask.

I've got the following situation. The website I'm currently working on has
got a administration page where the administration user must be able to
login as all the users available. It is fine getting all the data, but I
want to open the login in a new browser window, otherwise the administrator
has go to re-login with his account. Thus, I need to somehow open a new
browser window, with a new session id. When somebody logs in I check to see
if there is already a session variable registered. If there is, I unset this
variable, and register a new one for the login account. You can see where my
problem is. At this stage I'm using some java script "window.open()" to open
the new window, but it is still with the save session id.

If any of you can tell me how to open a new browser window with a new
session id, I would greatly appreciate it.

Thanx
Riaan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] New window, new session

2002-06-25 Thread Riaan Stander

Hi there

I know this is not a php specific question, but I don't know where else to
ask.

I've got the following situation. The website I'm currently working on has
got a administration page where the administration user must be able to
login as all the users available. It is fine getting all the data, but I
want to open the login in a new browser window, otherwise the administrator
has go to re-login with his account. Thus, I need to somehow open a new
browser window, with a new session id. When somebody logs in I check to see
if there is already a session variable registered. If there is, I unset this
variable, and register a new one for the login account. You can see where my
problem is. At this stage I'm using some java script "window.open()" to open
the new window, but it is still with the save session id.

If any of you can tell me how to open a new browser window with a new
session id, I would greatly appreciate it.

Thanx
Riaan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Changing Session ID

2002-06-26 Thread Riaan Stander

Hi there

I've got the following cenario. I got a general user page with a "Login"
button next to each user. This button only opens a new browser window by
setting the target in the form tag and submits the username, password,
button value, and a "newsess" flag to the login page in the new browser
window. The login page checks to see if the "newsess" flag is set. If it is,
it creates a new session id like this:
if ( isset( $newsess ) )
{
  session_id( uniqid( "mysess", false ) );
}
I can now test anywhere on this page what the session id is, and it gives me
the new one. The page now evaluates the values submitted to it and then log
the user in, if possible. After the login it registeres some session
variables and even creates the file containing the session variables (all is
fine in the file) and then directs the user to the index page for his user
type, like this:
header( "Location: ./c_index.php" );
But here is my problem now. On this page where it is directed to the session
id is not the new one, but still the old one, and thus does not allow the
user on this page.

What can I do to ensure that the new browser window uses the newly created
session id.

Any help is welcome

Thanx
Riaan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Changing Session ID

2002-06-27 Thread Riaan Stander

Hi there

I've got the following cenario. I got a general user page with a "Login"
button next to each user. This button only opens a new browser window by
setting the target in the form tag and submits the username, password,
button value, and a "newsess" flag to the login page in the new browser
window. The login page checks to see if the "newsess" flag is set. If it is,
it creates a new session id like this:
if ( isset( $newsess ) )
{
  session_id( uniqid( "mysess", false ) );
}
I can now test anywhere on this page what the session id is, and it gives me
the new one. The page now evaluates the values submitted to it and then log
the user in, if possible. After the login it registeres some session
variables and even creates the file containing the session variables (all is
fine in the file) and then directs the user to the index page for his user
type, like this:
header( "Location: ./c_index.php" );
But here is my problem now. On this page where it is directed to the session
id is not the new one, but still the old one, and thus does not allow the
user on this page.

What can I do to ensure that the new browser window uses the newly created
session id.

Any help is welcome

Thanx
Riaan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php