{"id":70,"date":"2009-01-31T17:00:58","date_gmt":"2009-01-31T16:00:58","guid":{"rendered":"http:\/\/www.withinweb.com\/info\/?p=70"},"modified":"2010-04-17T12:22:08","modified_gmt":"2010-04-17T12:22:08","slug":"logging-in-and-session-errors","status":"publish","type":"post","link":"https:\/\/www.withinweb.com\/info\/logging-in-and-session-errors\/","title":{"rendered":"Logging in and session errors"},"content":{"rendered":"<p>With <a href=\"\/phpeseller\/\">PHP-eSeller<\/a>, <a href=\"\/phpsecurearea\/\">PHP-SecureArea<\/a> or <a href=\"\/phpkeycodes\/\">PHP-KeyCodes<\/a>, if you get an error during installation where the admin keeps on logging out, it is usually because there is an issue with session variables on your server.<\/p>\n<p>First check using the test file a_session_test.php\u00a0 When the page is first loaded there will be a link, click the link and it should say &#8216;Welcome back&#8217;.\u00a0 If it does not, then it means there is a sessions issue on your server.<\/p>\n<p>There could be a number of reasons for this, usually it is caused by a configuration problem on the server.\u00a0 There should be a folder on the server which is used to store sessions and somtimes the host has not set this correctly.\u00a0 Or it could be that it is a shared server and the server does not know the path.<\/p>\n<p>Contact your hosting and ask them to investigate.<\/p>\n<p>Sometimes they will reply that you include the following code at the top of any PHP script that uses sessions:<\/p>\n<p>session_save_path(&#8220;path to session folder&#8221;);<\/p>\n<p>If you use session_save_path on the page that registers a variable, you have also to use session_save_path on all the pages, where you access the session-variable. Under win32 you can use the double \\\\ to specify eg &#8220;c:\\\\temp\\\\&#8221;<\/p>\n<p>This is possible to do but is not really practical.<\/p>\n<p>If they do reply with the above, it is worth asking them again to check the php.ini configuration and also ask if there is a global method where you can set the path and where you do not have to change every instance in the application.<\/p>\n<p>One possible solution is to set the session.save_path in an .htaccess file.\u00a0 You may not have access to the php.ini file so this may be the way to do it.\u00a0 You can do that in the .htaccess file, which is kind of configuration file for Apache, and put it in your root web folder.\u00a0<\/p>\n<p>If you add :<\/p>\n<p>php_value session.save_path \/home\/groups\/f\/f4\/f4l\/tmp\/<\/p>\n<p>where the folder name is the absolute path to the folder.\u00a0 You should be able to get the absolute path by logging into your control panel.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With PHP-eSeller, PHP-SecureArea or PHP-KeyCodes, if you get an error during installation where the admin keeps on logging out, it is usually because there is an issue with session variables on your server. First check using the test file a_session_test.php\u00a0<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"https:\/\/www.withinweb.com\/info\/logging-in-and-session-errors\/\">Read more <span class=\"screen-reader-text\">Logging in and session errors<\/span><span class=\"meta-nav\"> &#8250;<\/span><\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5,4],"tags":[],"class_list":["post-70","post","type-post","status-publish","format-standard","hentry","category-php-eseller","category-php-keycodes","category-php-securearea"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Logging in and session errors - PHP Web Applications<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.withinweb.com\/info\/logging-in-and-session-errors\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Logging in and session errors - PHP Web Applications\" \/>\n<meta property=\"og:description\" content=\"With PHP-eSeller, PHP-SecureArea or PHP-KeyCodes, if you get an error during installation where the admin keeps on logging out, it is usually because there is an issue with session variables on your server. First check using the test file a_session_test.php\u00a0&hellip;Read more Logging in and session errors &#8250;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.withinweb.com\/info\/logging-in-and-session-errors\/\" \/>\n<meta property=\"og:site_name\" content=\"PHP Web Applications\" \/>\n<meta property=\"article:published_time\" content=\"2009-01-31T16:00:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2010-04-17T12:22:08+00:00\" \/>\n<meta name=\"author\" content=\"paulv\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"paulv\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/logging-in-and-session-errors\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/logging-in-and-session-errors\\\/\"},\"author\":{\"name\":\"paulv\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\"},\"headline\":\"Logging in and session errors\",\"datePublished\":\"2009-01-31T16:00:58+00:00\",\"dateModified\":\"2010-04-17T12:22:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/logging-in-and-session-errors\\\/\"},\"wordCount\":376,\"commentCount\":0,\"articleSection\":[\"PHP-eSeller\",\"PHP-KeyCodes\",\"PHP-SecureArea\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/logging-in-and-session-errors\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/logging-in-and-session-errors\\\/\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/logging-in-and-session-errors\\\/\",\"name\":\"Logging in and session errors - PHP Web Applications\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\"},\"datePublished\":\"2009-01-31T16:00:58+00:00\",\"dateModified\":\"2010-04-17T12:22:08+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/logging-in-and-session-errors\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/logging-in-and-session-errors\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/logging-in-and-session-errors\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Logging in and session errors\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\",\"name\":\"PHP Web Applications\",\"description\":\"Information and support for products of WithinWeb.com\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\",\"name\":\"paulv\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/author\\\/paulv\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Logging in and session errors - PHP Web Applications","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.withinweb.com\/info\/logging-in-and-session-errors\/","og_locale":"en_US","og_type":"article","og_title":"Logging in and session errors - PHP Web Applications","og_description":"With PHP-eSeller, PHP-SecureArea or PHP-KeyCodes, if you get an error during installation where the admin keeps on logging out, it is usually because there is an issue with session variables on your server. First check using the test file a_session_test.php\u00a0&hellip;Read more Logging in and session errors &#8250;","og_url":"https:\/\/www.withinweb.com\/info\/logging-in-and-session-errors\/","og_site_name":"PHP Web Applications","article_published_time":"2009-01-31T16:00:58+00:00","article_modified_time":"2010-04-17T12:22:08+00:00","author":"paulv","twitter_card":"summary_large_image","twitter_misc":{"Written by":"paulv","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.withinweb.com\/info\/logging-in-and-session-errors\/#article","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/logging-in-and-session-errors\/"},"author":{"name":"paulv","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c"},"headline":"Logging in and session errors","datePublished":"2009-01-31T16:00:58+00:00","dateModified":"2010-04-17T12:22:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.withinweb.com\/info\/logging-in-and-session-errors\/"},"wordCount":376,"commentCount":0,"articleSection":["PHP-eSeller","PHP-KeyCodes","PHP-SecureArea"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.withinweb.com\/info\/logging-in-and-session-errors\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.withinweb.com\/info\/logging-in-and-session-errors\/","url":"https:\/\/www.withinweb.com\/info\/logging-in-and-session-errors\/","name":"Logging in and session errors - PHP Web Applications","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/#website"},"datePublished":"2009-01-31T16:00:58+00:00","dateModified":"2010-04-17T12:22:08+00:00","author":{"@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c"},"breadcrumb":{"@id":"https:\/\/www.withinweb.com\/info\/logging-in-and-session-errors\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.withinweb.com\/info\/logging-in-and-session-errors\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.withinweb.com\/info\/logging-in-and-session-errors\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.withinweb.com\/info\/"},{"@type":"ListItem","position":2,"name":"Logging in and session errors"}]},{"@type":"WebSite","@id":"https:\/\/www.withinweb.com\/info\/#website","url":"https:\/\/www.withinweb.com\/info\/","name":"PHP Web Applications","description":"Information and support for products of WithinWeb.com","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.withinweb.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c","name":"paulv","url":"https:\/\/www.withinweb.com\/info\/author\/paulv\/"}]}},"_links":{"self":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/70","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/comments?post=70"}],"version-history":[{"count":6,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":524,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/70\/revisions\/524"}],"wp:attachment":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/media?parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/categories?post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/tags?post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}