|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphp.java.bridge.SessionFactory
public class SessionFactory
Create new session or context instances
Session,
Context,
Context,
ContextFactory,
ServletContextFactory,
PhpScriptContextFactory| Field Summary | |
|---|---|
static long |
TIMER_DURATION
Check for expired sessions or contexts every 10 minutes |
static long |
TIMER_FREQ
Deprecated. Use TIMER_DURATION |
| Constructor Summary | |
|---|---|
SessionFactory()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Destroy the factory |
IContext |
getContext()
Return the associated context |
ISession |
getSession(java.lang.String name,
boolean clientIsNew,
int timeout)
|
void |
recycle()
Recycle the factory for new reqests. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long TIMER_DURATION
public static final long TIMER_FREQ
TIMER_DURATION| Constructor Detail |
|---|
public SessionFactory()
| Method Detail |
|---|
public ISession getSession(java.lang.String name,
boolean clientIsNew,
int timeout)
name - The session name. If name is null, the name PHPSESSION will be used.clientIsNew - true if the client wants a new sessiontimeout - timeout in seconds. If 0 the session does not expire.
ISessionpublic IContext getContext()
ContextFactory.getContext()public void recycle()
public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||