/    Sign up×
Community /Pin to ProfileBookmark

Keep user level in teaching website

Hi friends,

I’m newbie in PHP and I’m looking for you advice.

I’m in a process of building a teaching system website.
My teaching website includes 20 lessons.
Each student can go through lessons personally in his free time.

How is it possible to make that when a student “logged-off” and then later “logged- in” agin, the system will remember his lesson number and let him continue from the place where he stop in his last visit ?

Thanks in advanced !

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@ginerjmOct 14.2014 — You probably want to have a db table to store user ids, names, and passwords. You could also store course info in a table such as lessons taken, date passed, score? and anything else you want to track. Then when they log in (and you query this table to confirm their credentials) you can then use that course info to decide what lesson they need to go back to. You could even have a third table to keep track of the answers for each lesson and then be able to call them up and re-populate the user's new session so that he/she can pick right up where they left off.
Copy linkTweet thisAlerts:
@jedaisoulOct 18.2014 — Less secure but simpler o implement (if you don't already have a user database set up) would be to use cookies. Though that also has the disadvantage that they would not be recognized if they logged in on a different machine. So, all in all, not a very good option, but an option none the less.
Copy linkTweet thisAlerts:
@bennykedmiauthorOct 19.2014 — hi friends,

I appreciate your advice.

many thanks !
×

Success!

Help @bennykedmi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...