Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > weird. iceweasel crash my laptop after i use costum sessions
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 16th March 15:30
jeffry
External User
 
Posts: 1
Default weird. iceweasel crash my laptop after i use costum sessions



i am using my laptop with PHP 4+ and mysql 5+, everything start to be weird
after i implement my costume sessions (storing in database).
i only use one database connection for the whole website.
what i mean is, the session and every query connect to mysqlserver using the
same user.

I am not sure if it is because of the sessions. but it happen after i use
costume sessions.

if i make a SQL query with non existant column name eg: noe

SELECT * FROM test WHERE noe=1;

Suddenly, if i use top to monitor process on my laptop i saw the processor
usage for the mysqld and firefox-bin(iceweasel) increasing.
Icewasel will continue to consume processor usage to 100% and memory up to
80% all the time.

Worst still, the mouse, keyboard do not work anymore. My laptop very-very
slow until i cannot move my mouse cursor at all..

there is no way i can go except turn off the laptop power.

I don't know what the problem is this. but, i think there is something to do
with the sessions. And it related to PHP or may be problem with Iceweasel.
I will try to ask debian mailing list for this.

In case anyone experience the same thing. please let me know how you fix it.
  Reply With Quote


  sponsored links


2 16th March 22:18
ceo
External User
 
Posts: 1
Default weird. iceweasel crash my laptop after i use costumsessions



Show us your source for the session queries and any loops that
surround that.

Most likely, you have an error in there.

Or, even more likely, you have a:
header("Location: ***");

where *** ends up putting you back on the same page...

Then you execute header("Location: ***") again.

This puts you back on the same page.

Then you execute header("Location: ***") again.

This puts you back on the same page.

..
..
..

Your browser and your server (which are both on your laptop) are stuck
in an infinite loop of header("Location: ***") re-directs.

Don't do that.

:-)


--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666