mod_session.h revision b72b768176398d8cd00d61b289c8e0f8ce09469f
* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. /* Create a set of SESSION_DECLARE(type), SESSION_DECLARE_NONSTD(type) and * SESSION_DECLARE_DATA with appropriate export and import tags for the platform * @brief Session Module for Apache * @defgroup MOD_SESSION mod_session * Define the name of a username stored in the session, so that modules interested * in the username can find it in a standard place. * Define the name of a password stored in the session, so that modules interested * in the password can find it in a standard place. * At the core of the session is a set of name value pairs making up the * The session might be uniquely identified by an anonymous uuid, or * a remote_user value, or both. const char *
remote_user;
/* user who owns this particular session */ const char *
encoded;
/* the encoded version of the key value pairs */ long maxage;
/* if > 0, the maxage of the session, from * which expiry is calculated */ int dirty;
/* dirty flag */ int cached;
/* true if this session was loaded from a int written;
/* true if this session has already been * Structure to carry the per-dir session config. int enabled;
/* whether the session has been enabled for long maxage;
/* seconds until session expiry */ const char *
header;
/* header to inject session */ int env;
/* whether the session has been enabled for * URLs included if empty */ * URLs excluded if empty */ * Hook to load the session. * If the session doesn't exist, a blank one will be created. * @param z A pointer to where the session will be written. * Hook to save the session. * In most implementations the session is only saved if the dirty flag is * true. This prevents the session being saved unnecessarily. * @param z A pointer to where the session will be written. * Hook to encode the session. * In the default implementation, the key value pairs are encoded using * key value pairs separated by equals, in turn separated by ampersand, * @param z A pointer to where the session will be written. * Hook to decode the session. * In the default implementation, the key value pairs are encoded using * key value pairs separated by equals, in turn separated by ampersand, * @param z A pointer to where the session will be written. * The name of the module. #
endif /* MOD_SESSION_H */