Home > ASP Development > Server Communication

Server Communication



This is what I am trying to do I am really just looking for an example and some kind of explantion of how you do this.



Ok I want to make simple log in system with the password and username and the user will go into there own session. Now once in the session I want the user to be able to add a point to there point total. But when they log out; If they log back in I dont wont them to be able to add a point. once 24 hours pass they can add another point. Im not intrested in using cookies either unless u know of a way to use them so the user cant alter the cookie so they can add another point.



BUT MY MAIN THEORY WAS; I create a notepad(or include not sure what to use for this) which each user will have on the server. An when they add a point this is stored in the users notepad on the server An everytime they log in this notepad is checked and depending on if the notepad has 1 or a 2 (1 being yes and 2 being no). The user will not be able to add a point again if the notepads results are checked. So I want to check against the server with conditions to determine if the user can add a point or not.



I know this is alot anyhelp will be greatly appreciated.



Thank you

    
Guest


yeah you can create a txt file on server and vereytime user logins you can record the time whenever they add a point by using writeline() function ( i hope i am not confusing myself b/w asp,.net and php.) , now whenever user logins , you can check the last line added to know when user last logined.

Was this answer helpful ? Yes No   
Guest


You could also just add a field, something like LastLogin and maybe another LastPoint. If either is <= 24 Then no point can be added. You could do this in Access pretty easily.

Was this answer helpful ? Yes No   
Guest


Quote:
Originally Posted by freeasphelp
You could also just add a field, something like LastLogin and maybe another LastPoint. If either is <= 24 Then no point can be added. You could do this in Access pretty easily.




Where would I add these fields, "LastLogin" & "LastPoint"? An example would be greatly appreciated.



Also mayur_sabharwal suggested using a text document to refer to for verfication of the point being added. How would that look? Would it be some kind of virtual path or something ? I would greatly appreciate an example of how to write the statement to cross reference the txt file on the server.

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2008 by Infoqu. All rights reserved