[PHPLIB] Re: Fw: Sessions: SQL-error, Dublicate entry in active_sessions From: Bob Strouper (bobw123 <email protected>)
Date: 03/13/00

Hello,

Check for a lingering page_close() in one of your
includes or some place in your application. I have
found that if page_close() is mistakingly called
in an include() and if at the same time page_close()
is also called in the parent script , it may produce
this error.

Bob

> When using PHPlibs session management I get
> the following error from time to time. There
> does not seem to be any obvious pattern in the
> error - it just shows up suddenly. How can there
> suddenly be a dublicate entry in the
> active_sessions table? Any ideas?
>
> "Database error: Invalid SQL: insert into active_sessions ( sid, name,
val,
> changed ) values ('c1c9a84aaab1b989075ec
> '20000309142257')
> MySQL Error: 1062 (Duplicate entry
> 'Session_gyy-c1c9a84aaab1b989075ec4d600cb6739' for key 1)
> Session halted."
>

______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com?sr=mc.mk.mcm.tag001

-
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.