I've written a login script that connects to a database, and it compares what's been entered in the login form to any users I've created via my database.
It works fine when I'm testing it locally, and even when I upload it to my site everything works OK.
It's just when I paste the code onto my pages in WordPress (I'm running a plugin that allows me to put PHP code on my WordPress pages/posts), the login form works, so I can log in and out happily, it's just when I try and view the 'members' page (which you can only view if you're signed in, if you're not you get a message saying you need to sign in), it says that I need to sign in, even though I'm already signed in.
Please help me!