Sessions part. 2 (and hopefully final chapter)
Websites & Projects | at 11:17 PM
I did it again, I spent a considerable amount of time messing with sessions. Seemingly, I had not understood everything about them. For instance, I did not realize the SID was automatically appended, I don't know if this was the fault of PHP running on my computer as a CGI module or perhaps the version I'm using is too old (4.3.1 I think ?), anyway it was not working properly until I try it on an actual server. I also had to meddle with the .htaccess file, because the php.ini configuration was different from mine and this alone took me an hour or more to figure out and set up properly.
By then, I realized PHP was smart enough to put the sessions ID where they needed to be. Right after that, I found this one site which spoiled my day by explaining that appending the SID to URL is actually a very bad thing because search engines won't index your pages.
O_O ........................................................... ¤
Fortunately, if I'm not mistaken (I'm too tired to think of that in depth), the way my site is made, it shouldn't matter, visitors don't receive SID. Hopefully I achieved what I wanted, an efficient, professional login system. But of course, there is the question of security, I guess I'll never be good enough about that, hopefully my code is not full of holes for hackers to exploit.
I'm sick of the amount of time I spent on all these different problems, because at the scale of the site, they are meaningless; I still have so much to do and I spend hours on the login which, at the moment, is actually the thing I should care the least about ! Tomorrow, I have a lot of things to do at work so I'm not sure I'll have time to programme, it's a pity because I feel this time I would manage to focus on the right things and do them well. Problem is... that's always the way I feel and I always end up wasting tens of hours on the same not so important problems. I'm such a young fart, haha.
Today's retro game: Sonic Blastman
Today's recent game: Kururin Squash
By then, I realized PHP was smart enough to put the sessions ID where they needed to be. Right after that, I found this one site which spoiled my day by explaining that appending the SID to URL is actually a very bad thing because search engines won't index your pages.
O_O ........................................................... ¤
Fortunately, if I'm not mistaken (I'm too tired to think of that in depth), the way my site is made, it shouldn't matter, visitors don't receive SID. Hopefully I achieved what I wanted, an efficient, professional login system. But of course, there is the question of security, I guess I'll never be good enough about that, hopefully my code is not full of holes for hackers to exploit.
I'm sick of the amount of time I spent on all these different problems, because at the scale of the site, they are meaningless; I still have so much to do and I spend hours on the login which, at the moment, is actually the thing I should care the least about ! Tomorrow, I have a lot of things to do at work so I'm not sure I'll have time to programme, it's a pity because I feel this time I would manage to focus on the right things and do them well. Problem is... that's always the way I feel and I always end up wasting tens of hours on the same not so important problems. I'm such a young fart, haha.
Today's retro game: Sonic Blastman
Today's recent game: Kururin Squash
...................