Fundamental problem with user system. Can't pinpoint problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
synical21
Forum Contributor
Posts: 150
Joined: Tue Jul 28, 2009 8:44 am
Location: London UK

Fundamental problem with user system. Can't pinpoint problem

Post by synical21 »

Hello gurus i have had a problem for a few weeks now and i slowly been trying to work out what makes my site react in this way. So the problem is when a process is executed E.G form informaton being inserted into a DB, the user will be loged out and the process would not be executed. I have pinpointed it to only when a process happens the types of actions it has happened on are:

- Form data being inserted into DB
- Button redirecting to process page which has various queries updating DB

there are various process's which use the above methods around my site so its a huge flaw. Now it would be easier to fix if this problem happened everytime a process was executed but this is where it gets weird, 80% of the time the processes work with no problems without users getting forced to log out. I am clueless so i dont even know what page(s) to show you. So if anyone has had this kind of experience or has helped some one with a similar problem i would really apreicate some help. If you need any code ill provide anything thanks for reading

Oh one thing which i think could be the problem but still wouldnt know how to fix is the sessions data, in all my processes around the site i use some sort of $_SESSION there is about 8 of them all in all. The sessions start when user logs in and get unset when they log out. Could that lead to the users being forced out?
Post Reply