diff --git a/Control/TSession/Happstack.hs b/Control/TSession/Happstack.hs
new file mode 100644
--- /dev/null
+++ b/Control/TSession/Happstack.hs
@@ -0,0 +1,73 @@
+{-# LANGUAGE FlexibleContexts, RecordWildCards #-}
+
+module Control.TSession.Happstack 
+  ( atomicTransactionPart
+  , createTransaction
+  , readVal
+  , safeLoadVal
+  , writeVal
+  , setStatus
+  , getStatus
+  , getReadSet
+  , commit
+  , finishSession
+  , TouchedValue(..)
+  , TouchedValues(..)
+  , TransactionBase(..)
+  , Trans(..)
+  , TSessionId
+  )
+where
+
+import qualified Control.TSession as TS (atomicTransactionPart)
+import Control.TSession hiding (atomicTransactionPart)
+import Happstack.Server
+import Control.Monad
+import Control.Monad.IO.Class
+import Control.Applicative
+import Data.IORef
+import Data.Tuple
+
+atomicTransactionPart
+  :: (Ord k, Eq v, MonadIO m,
+      Functor m, HasRqData m, FilterMonad Response m, MonadPlus m) 
+    => TransactionBase k v status 
+    -> Trans k v status a -> m a
+atomicTransactionPart = TS.atomicTransactionPart tsessionIdFromCookie
+
+tsessionIdFromCookie 
+  :: (MonadIO m, MonadPlus m, Functor m, 
+      HasRqData m, FilterMonad Response m) 
+    => TransactionBase k v status 
+    -> m TSessionId
+tsessionIdFromCookie tr@TransactionBase{..} = 
+  msum [ transactionIdFromCookie tr
+ -- My Haskell brain just exploded:
+ -- http://intoscience.blogspot.de/2012/12/my-haskell-brain-just-exploded.html
+       , case _tsessionIdGenerator of
+          TSessionIdGenerator{..} -> do
+            nextTsessionId <- liftIO $ 
+              atomicModifyIORef _tsessionIdGeneratorRef (swap._tsessionIdGeneratorGenFun)
+            addCookie Session $ 
+              mkCookie ("transation_" ++ _trBaseName) $ 
+                show nextTsessionId
+            return nextTsessionId 
+       ]
+
+transactionIdFromCookie 
+  :: (Monad m, Functor m, HasRqData m) 
+    => TransactionBase k v status 
+    -> m TSessionId
+transactionIdFromCookie tr@TransactionBase{..} = do
+  transactionId <- 
+    read <$> lookCookieValue ("transation_" ++ _trBaseName)
+  return transactionId
+
+transactionIdFromCookieMaybe 
+  :: (MonadPlus m, Functor m, HasRqData m) 
+    => TransactionBase k v status 
+    -> m (Maybe TSessionId)
+transactionIdFromCookieMaybe tr@TransactionBase{..} = do
+  msum [ Just . read <$> lookCookieValue
+                           ("transation_" ++ _trBaseName)
+       , return Nothing ]
diff --git a/LICENSE b/LICENSE
new file mode 100644
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,10 @@
+Copyright (c) 2014, Florian Micheler
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/tsession-happstack.cabal b/tsession-happstack.cabal
new file mode 100644
--- /dev/null
+++ b/tsession-happstack.cabal
@@ -0,0 +1,26 @@
+Name:                tsession-happstack
+Version:             0.1
+Synopsis:            A Transaction Framework for Happstack         
+Description:         This is the integration of tsession to Happstack 
+  .
+  For more information check my master thesis:
+  .
+  <http://stud.micheler.net/master.pdf>
+        
+License:             BSD3
+License-file:        LICENSE
+Author:              Florian Micheler <hackage@micheler.net>
+Maintainer:          Florian Micheler <hackage@micheler.net>
+Copyright:           2014 Florian Micheler
+Category:            Web
+Build-type:          Simple
+Cabal-version:       >=1.6
+
+
+Library
+  Exposed-modules:     Control.TSession.Happstack
+  Build-depends:       base >4 && <5,
+                       transformers,
+                       happstack-server,
+                       tsession == 0.1
+                       
diff --git a/tsession-happstack.cabal~ b/tsession-happstack.cabal~
new file mode 100644
--- /dev/null
+++ b/tsession-happstack.cabal~
@@ -0,0 +1,26 @@
+Name:                tsession-happstack
+Version:             0.1
+Synopsis:            A Transaction Framework for Happstack         
+Description:         This is the integration of tsessions to Happstack 
+  .
+  For more information check my master thesis:
+  .
+  <http://stud.micheler.net/master.pdf>
+        
+License:             BSD3
+License-file:        LICENSE
+Author:              Florian Micheler <hackage@micheler.net>
+Maintainer:          Florian Micheler <hackage@micheler.net>
+Copyright:           2014 Florian Micheler
+Category:            Web
+Build-type:          Simple
+Cabal-version:       >=1.6
+
+
+Library
+  Exposed-modules:     Control.TSession.Happstack
+  Build-depends:       base >4 && <5,
+                       transformers,
+                       happstack-server,
+                       tsession == 0.1
+                       
