christrinder
11-27-2002, 02:23 PM
Hello,
I know this question might appear a little basic, but I don't work in an IT industry and learn all coding through practice, free online tutorials and help in this forum. I have however managed to teach myself enough to produce various sites with dynamic content, searchable functions bla bla bla... you know the score. The thing is, I can make things work, but without the background knowledge that you guys have, I never know whether I'm doing things in the best way... so here I ask...
1.) I wanted a site counter. I've seen a lot of free scripts for counters, but what extension do you save these files with, I'm assuming they're not *.js files. I've used a rather naff system off saving the user's id to a table and the counter returns the sum(*) of that table, but as the hits grow, this table will surely take up more space than neccessary. Is there a better way?... obviously yes, but what?
2.) I've also added a security system which allocates the user with a set session id. If the session id doesn't match the criteria on each page, they are denied permission. What I want to know is how easy is it for people to create the necessary session on another site and then return? Is there a better way to add security without getting too complicated, and is this system enough for most users where there is not really any sensitive information?
3.) Finally, and hence the subject title, what folder in my server should I use for what? Currently I have everything installed in wwwroot, but I realise this isn't the best way of doing things. Where should the db be stored for example to stop people downloading it?
Cheers,
Chris
I know this question might appear a little basic, but I don't work in an IT industry and learn all coding through practice, free online tutorials and help in this forum. I have however managed to teach myself enough to produce various sites with dynamic content, searchable functions bla bla bla... you know the score. The thing is, I can make things work, but without the background knowledge that you guys have, I never know whether I'm doing things in the best way... so here I ask...
1.) I wanted a site counter. I've seen a lot of free scripts for counters, but what extension do you save these files with, I'm assuming they're not *.js files. I've used a rather naff system off saving the user's id to a table and the counter returns the sum(*) of that table, but as the hits grow, this table will surely take up more space than neccessary. Is there a better way?... obviously yes, but what?
2.) I've also added a security system which allocates the user with a set session id. If the session id doesn't match the criteria on each page, they are denied permission. What I want to know is how easy is it for people to create the necessary session on another site and then return? Is there a better way to add security without getting too complicated, and is this system enough for most users where there is not really any sensitive information?
3.) Finally, and hence the subject title, what folder in my server should I use for what? Currently I have everything installed in wwwroot, but I realise this isn't the best way of doing things. Where should the db be stored for example to stop people downloading it?
Cheers,
Chris