Skip to content

Instantly share code, notes, and snippets.

View poornerd's full-sized avatar
🙄
working hardly

Brian Porter poornerd

🙄
working hardly
View GitHub Profile
<html>
<body>
test
<h2> testtest</h2>
</body>
</html>
@poornerd
poornerd / Secured.java
Created April 1, 2014 19:36
Implementing a session timeout in Play Framework 2
/*
* How to implement a session timeout in Play Framework 2
* http://www.poornerd.com/2014/04/01/how-to-implement-a-session-timeout-in-play-framework-2/
*
*/
public class Secured extends Security.Authenticator {
public static final String UNAUTHENTICATED = "unauthenticated";
public static User getLoggedInUser() {