273 Topics

Member Avatar for
Member Avatar for joshmac

I am not sure if this makes sense, but in an application I've working on, there are two users. One is an admin with an admin role/capabilities and the other is a member with a member role/capabilities. Now, when I log in as the admin, there is no issue. When …

Member Avatar for fobos
0
118
Member Avatar for yanwick

Hi, Im using session variables and when passing from one page to another with a target="_top" the session variables are erased. Is there anyway i can go around this problem ? Any idea will be greatly appreciated. Thank you

Member Avatar for yanwick
0
204
Member Avatar for moblyft

Hi All, I am trying to create a page were users can edit their post. -Select subbmitted data from the database using post id, and display this information so that users can Edit. -And finally i want to update the data and continue to the preview page, where users can …

Member Avatar for moblyft
0
166
Member Avatar for harintfs

Dear I would like to set session expire time to 3hrs, Which one is best ? `ini_set("session.cookie_lifetime","10800");` or `session_set_cookie_params(3600 * 3);` Or can I use both? And one more, Is it compulsary to place every page b4 where ever session_start() Thanks. Pls help me.

Member Avatar for harintfs
0
178
Member Avatar for saadi06

Hi, I am facing a problem in transferring session.I am developing a website and I want to integrate a forum in the website.I need to take the session of the user from my website to the forum. Is there any way of transferring my session values to the forum. Thanks …

Member Avatar for veedeoo
0
464
Member Avatar for infinitus

Hello there i would like someone to have a peek at this code and does it solve the question correctly ?? Are there any mistakes or any improvements i could add ?? Also i struggle in this questions as i do not get it fully(in fact i dont get what …

0
176
Member Avatar for in4sys

Simple table like this [CODE] CREATE TABLE IF NOT EXISTS `users` ( `id` int(255) NOT NULL AUTO_INCREMENT, `username` varchar(25) NOT NULL, `password` varchar(25) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=101 ; [/CODE] [CODE]<?php session_start(); function insert(){ if(isset($_POST)&& isset($_SESSION['post_vars'])){ $insert_query="insert into users set username = '".$_SESSION['post_vars']['username']."' , password …

Member Avatar for Skelly1983
0
201
Member Avatar for Kunal Aggarwal

I am making a page that uses a login and contact page. Everything is working fine, but I have a small hiccup at one point. The scenario is: When the user isn't logged in, the contact form is to be filled completely and will be sent to a particular email. …

Member Avatar for nice123
0
207
Member Avatar for vishalbhavsar

Hi All, I am trying to develop a web application in which I have provided a facility for login and logout. The problem I am facing is that I can allow user to log in succesfully, but when user clicks on the logout link and comes to login page and …

Member Avatar for syrellNardo
0
78
Member Avatar for Que336

Hi I'm having problems unsetting session varibles using this code. I'm not sure what I'm doing wrong. Nothing happens. Please help [CODE]<?php session_start(); $id = $_GET['id']; $pro = $_SESSION['products']; $qua = $_SESSION['quantity']; echo $pro[$id].''." Has been removed"; unset($pro[$id]); session_write_close(); unset($qua[$id]); session_write_close(); ?>[/CODE]

Member Avatar for Zagga
0
115
Member Avatar for selman555

Hi all, I have question about sessions in web services (VB). I created a function that allows me to login to my web service. I created a session here and added some values I retrieved from a stored procedure. The code will explain more :) [code=vb] <WebMethod(EnableSession:=True)> _ Public Function …

Member Avatar for thines01
0
274
Member Avatar for megachip04

I have an approve.php inside an /include directory. I have another file inside the /pop_up directory. Approve.php [CODE] if (!isset($_SESSION['username'])) { header("location:log_in.php"); die(); } [/CODE] When i run the include('include/approve.php') code in files in the main directory, it works. When I run the include('../include/approve.php') in files in the pop_up/ directory …

Member Avatar for shah01
0
564
Member Avatar for klemme

Hi all, I came to think of something in my code, which might cause a problem, but I am not sure. After a user of the site has succesfully put a product in the shopping cart - I set a session['cart_succes'] = 'something'; - to display to the customer (after …

Member Avatar for klemme
0
215
Member Avatar for grant.baker

Hello all, I've been having an issue with php variables recently. I don't have much experience working with sessions, but I know that domain.com and [url]www.domain.com[/url] are viewed differently when working with sessions. The problem I have is with included files. I am calling .../logbook/header.php from ...logbook/Graphs/index.php. When I use …

Member Avatar for grant.baker
0
224
Member Avatar for klemme

Hi, I want to get information from each session set, EXCEPT when the session name is 'navigation': So basically: Create an exception for the session called 'navigation'.. [CODE] foreach ($_SESSION as $name => $value) // $name = navn pÃ¥ session: f.eks. 1 eller 2 - $value indeholder antallet der er …

Member Avatar for pritaeas
0
917
Member Avatar for subrata_ushasi

Hi all, I have a login page in localhost(website link : [url]www.csoftindia.net[/url]) . When I logged in it is showing alternate html "you are logged in as..." but when moving another page like news or other page session is lost either or it is not destroying session. Subrata

Member Avatar for baig772
0
631
Member Avatar for chillysnow

Hi, I am using Paypal to do my payment processing, however the user authentication JSP session variables I am using are expiring during the transition from my site to paypal's then back to mine again. The result is obviously that access is denied on return and the transaction does not …

Member Avatar for peter_budo
0
182
Member Avatar for masterjiraya

My PHP Session Log-in and log-out works fine but this is the problem I have a site consists of admin folder and outside the admin folder are the customer page files. both of them has sessions for log-in and log-out purposes but it acts so WEIRD because if I'm running …

Member Avatar for masterjiraya
0
279
Member Avatar for 4cpukid

Hi; I have a mobile script from detectmobilebrowsers.com that will redirect the user to my mobile site however I also wish that when the URL "http://mysite.com/?mobile=no" is entered a session will be created that won't redirect the user on every page of my site... [code=php] $mobile=$_GET['mobile']; if(isset($_SESSION['mobile'])){ if($_SESSION['mobile']==="no"){ complete(); } …

Member Avatar for forkmartin
0
185
Member Avatar for mbowler

Hello, I run a service business where employees go to customer homes. I have a Joomla site where registered users (customers) can maintain details about the services they wish us to perform for them. At any point they can login and change these details. I have functions that use TCPDF …

0
69
Member Avatar for gorleone

Hey guys, what the best practice for session check without duplicate code. I mean when check the session in some controller I have to duplicate the code to other controller, and that is not a good idea. <?php [CODE]class Ctrl extends Controller { private function _ses_check() {...} } class Second_ctrl …

Member Avatar for pritaeas
0
162
Member Avatar for Narayanan87

Hi i am new to JSP. I am setting a boolean value for session attribute in the java class. Now i am getting the same in the jsp using session.getAttribute("session attribute") method. Now i want to remove the session value in jsp. How could i achieve this??? Plz Help..

Member Avatar for laxmipriya22
0
93
Member Avatar for Philippe.Lahaie

Hi, I am currently taking care of a website that goes back to 1997 and mostly all programmed with Asp 2.0 and vbscript, while i keep the pages in Asp 2.0 when i have to update them, this week i had to implement some new pages, and since we are …

Member Avatar for Philippe.Lahaie
0
516
Member Avatar for BenzZz

Error messages should be displayed within the html if certain fields on my member register form are left empty, if they are invalid types or if the username entered already exists. I've tried adding a record with an already existing username and it does direct to the member registration failed …

Member Avatar for BenzZz
0
266
Member Avatar for anthonyjpv

I am developing a small online shopping website. My question is: Do I still have to use session if I wont allow customers to add items to cart when they are not registered? Meaning, once they want to order, they will have to register and login to their account Thank …

Member Avatar for phorce
0
161
Member Avatar for AaronLLF

On a new site I'm making, sessions are not working. They were working previously, and stopped without a single change of the code. Once a login goes through the verification, it runs: [CODE]$_SESSION['uid'] = getIdFromEmail($email);[/CODE] getIdFromEmail is a function I built to get the user's ID from their email address. …

Member Avatar for simplypixie
0
255
Member Avatar for Psyho

Hello all. The problem: I have started a session. Now I would need to set an expiry time (24 hours) on the cookie it creates (if it creates it). How do I achieve this? Thanks to all, who anwsers.

Member Avatar for Stefano Mtangoo
0
114
Member Avatar for |-|x

I originally posted this over on the [URL="http://wordpress.org/support/topic/incorrect-page-content-passed-to-plugin-in-firefox"]WordPress forums[/URL], and got no responses. Eventually I figured out what the problem was and fixed it, but thought I'd repost here in case anyone else is experiencing similar issues (I couldn't find any related articles in my initial search on the symptoms.) …

Member Avatar for cereal
2
200
Member Avatar for rayidi

Dear Friends, I'm Currently using php session ( $_SESSION[''] ), I want to use $_COOKIE Because when a user didn't click the logout button and he closed the website. still he is showing Online because i write the code at the logout page. So If we use $_COOKIE it is …

Member Avatar for diafol
0
188
Member Avatar for cacofonix

Hi all, I want to alert the user that his session time is expired . There are two options after session expired 1, redirect user to login page 2, ask user to extend their session time Guys , i never implement this feature in any of my project , can …

Member Avatar for broj1
0
127

The End.