~ankurd/coursefeedback/trunk

« back to all changes in this revision

Viewing changes to trunk/login/login.php

  • Committer: legaloslotr
  • Date: 2009-12-24 18:03:23 UTC
  • Revision ID: legaloslotr-20091224180323-qpggpum8j25vu6h0
Created course.php.
Improved 2 column css layout.
Bugfix in login system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
                 $_SESSION['studentId']=$loginData['studentId'];
18
18
             }
19
19
             //successfully loggedIn. now transfer to appropriate page
20
 
             header("Location: ".absUrl('../loggedIn.php'));
 
20
             header("Location: ".$_SERVER['HTTP_REFERER']);
21
21
             exit ();
22
22
         }
23
23
         else {
 
24
             //loginError
24
25
             setcookie('loginError','true',time()+60,"/");
25
 
             header("Location: ".absUrl('../index.php'));
 
26
             header("Location: ".$_SERVER['HTTP_REFERER']);
26
27
             exit();
27
28
         }
28
29
     }