����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 3.141.29.119 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/app6/node_modules/express-session/session/ |
Upload File : |
/*! * Connect - session - Store * Copyright(c) 2010 Sencha Inc. * Copyright(c) 2011 TJ Holowaychuk * MIT Licensed */ 'use strict'; /** * Module dependencies. * @private */ var Cookie = require('./cookie') var EventEmitter = require('events').EventEmitter var Session = require('./session') var util = require('util') /** * Module exports. * @public */ module.exports = Store /** * Abstract base class for session stores. * @public */ function Store () { EventEmitter.call(this) } /** * Inherit from EventEmitter. */ util.inherits(Store, EventEmitter) /** * Re-generate the given requests's session. * * @param {IncomingRequest} req * @return {Function} fn * @api public */ Store.prototype.regenerate = function(req, fn){ var self = this; this.destroy(req.sessionID, function(err){ self.generate(req); fn(err); }); }; /** * Load a `Session` instance via the given `sid` * and invoke the callback `fn(err, sess)`. * * @param {String} sid * @param {Function} fn * @api public */ Store.prototype.load = function(sid, fn){ var self = this; this.get(sid, function(err, sess){ if (err) return fn(err); if (!sess) return fn(); var req = { sessionID: sid, sessionStore: self }; fn(null, self.createSession(req, sess)) }); }; /** * Create session from JSON `sess` data. * * @param {IncomingRequest} req * @param {Object} sess * @return {Session} * @api private */ Store.prototype.createSession = function(req, sess){ var expires = sess.cookie.expires var originalMaxAge = sess.cookie.originalMaxAge sess.cookie = new Cookie(sess.cookie); if (typeof expires === 'string') { // convert expires to a Date object sess.cookie.expires = new Date(expires) } // keep originalMaxAge intact sess.cookie.originalMaxAge = originalMaxAge req.session = new Session(req, sess); return req.session; };