Well, I had a bad experience with my setting of cookies. There seemed to be a problem which doesn’t work. In the end, its just a simple problem. When I set cookie, I set it as http://www.url.com, but when i access the site i accessed it as http://url.com. Which means the cookie won’t be set as its incorrect url. To change it, I changed my set cookie parameter to url.com, and it has since solved my problem.
Now I’m facing a SQL problem. The data will not come out. Will there be an error when passing an @ through SQL? Its really weird as the login script works. (Username is an email address ma).