1

For an Online exam application using PHP,JS,MySql, I have an exam that has 3 Hours. All the questions are loaded in client side and after the time-out/submit only-we communicate with server for valuation of exam and results. When internet is gone for Some Hours/Time i cant calculate the exam results and i am losting my attended exam details for valuation.

2 Answers2

0

How I understand, your problem is PHPSESSION expiration (because PHP drop session after 30 minutes). So I recommend store your session data into database and make session cookie expiration time ~3 hours (exam time).

Also you can make PHP SESSION live time more long (How do I expire a PHP session after 30 minutes?). But i think more right way - store all data in database

Community
  • 1
  • 1
stepozer
  • 1,143
  • 1
  • 10
  • 22
0

When the internet is gone, we might all be screwed up anyway...

Jan
  • 42,290
  • 8
  • 54
  • 79