---
name: "HTML::Embperl::Session"
section: "3pm"
platform: "linux"
package: "libhtml-embperl-perl"
version: "1.3.6-3"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/HTML::Embperl::Session"
---

# HTML::Embperl::Session(3pm)

HTML::Embperl::Session  An adaptation of Apache::Session to work with HTML::Embperl\
 **Addtional Attributes for TIE** By Specifing this attribute, you tell Apache::Session to not do any access to the object store, until the first read or write access to the tied hash. Otherwise the **tie** function will make sure the hash exist or creates a new one. Setting this to one causes Apache::Session to create a new session with the given id (or a new id, depending on `"recreate_id"`) when the specified session id does not exists. Otherwise it will die. Setting this to one causes Apache::Session to create a new session id when the specified session id does not exists.  Specify the class for the object store. (The Apache::Session:: prefix is optional) Only for Apache::Session 1.00. Specify the class for the lock manager. (The Apache::Session:: prefix is optional) Only for Apache::Session 1.00. Specify the class for the object store. (The Apache::Session::Store prefix is optional) Only for Apache::Session 1.5x. Specify the class for the lock manager. (The Apache::Session::Lock prefix is optional) Only for Apache::Session 1.5x. Specify the class for the id generator. (The Apache::Session::Generate prefix is optional) Only for Apache::Session 1.5x. Specify the class for the data serializer. (The Apache::Session::Serialize prefix is optional) Only for Apache::Session 1.5x. Example using attrubtes to specfiy store and object classes instead of a derived class:

```
 use HTML::Embperl::Session;
```

```
 tie %session, 'HTML::Embperl::Session', undef,
    {
    object_store => 'DBIStore',
    lock_manager => 'SysVSemaphoreLocker',
    DataSource => 'dbi:Oracle:db'
    };
```

NOTE: HTML::Embperl::Session will require the nessecary additional perl modules for you.\
 **Addtional Methods** Set the session id for futher accesses. Get the session id. The difference to using `$session`{\_session\_id} is, that in lazy mode, getid will **not** create a new session id, if it doesn't exists. Writes any pending data, releases all locks and deletes all data from memory. Gerald Richter \<richter@dev.ecos.de\> is the current maintainer. This class was written by Jeffrey Baker (jeffrey@kathyandjeffrey.net) but it is taken wholesale from a patch that Gerald Richter (richter@ecos.de) sent me against Apache::Session.
