4,124 Topics

Member Avatar for
Member Avatar for davy_yg

Hello, I am following this tutorial: http://www.codefactorycr.com/login-with-codeigniter-php.html It works when I copy it exactly as it is. Now, I only wonder why eventhough I try to imitate it and modify it a little bit to match my system, I wonder why it still does not work ? views/admin/login_view.php <!DOCTYPE html …

Member Avatar for cereal
0
517
Member Avatar for jatinmca

protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { UpdateTime(); } } protected void Timer1_Tick(object sender, EventArgs e) { UpdateTime(); } public void UpdateTime() { try { int hour = 00, min = 00, sec = Int32.Parse(Session["tleft"].ToString()); // min = Int32.Parse(Session["tleft"].ToString()) / TimeSpan span = new TimeSpan(TimeSpan.TicksPerSecond * sec); …

Member Avatar for Sathish_3
0
1K
Member Avatar for winbala5

Hi all, I had two website in different servers. Both website had same headers. so if login one server website and going to another website i want same session in this website. how to pass the session values to this server. And also if logout server means both servers sessions …

Member Avatar for winbala5
0
278
Member Avatar for Eagle.Avik

hi how can i fetch data from the database and stroe it into session variable. my code: $sql = "SELECT password, fullname, username, active FROM ".$mysql_table." WHERE (username = :username OR email = :username) AND password = :password"; $statement = $pdo->prepare($sql); $statement->bindValue(':username', $_POST['username']); $statement->bindValue(':password', md5($_POST['password'])); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); if …

Member Avatar for Eagle.Avik
0
272
Member Avatar for Nadera

Hello, I have a form that retrieve the data from the database, which it depends on the expenses ID, then I want to send email to the employee to notification him that his expenses claim has rejected. The problem is on the phpmailer that does not take the value of …

Member Avatar for AARTI SHRIVAS
0
178
Member Avatar for strongard63

pritaeas wrote:""Do not ask for help to pursue any illegal activity including, but not limited to, hacking and spamming" it sucks when someone do not read very well and understand the meaning of the message strongard63 wrote :"this is only for educational purpose." who the hell told you I will …

Member Avatar for pritaeas
0
413
Member Avatar for santoshkumar.palivela.7

<?php class Jcart { public $config = array(); private $items = array(); private $names = array(); private $prices = array(); private $qtys = array(); private $urls = array(); private $subtotal = 0; private $itemCount = 0; function __construct() { // Get $config array include_once('config-loader.php'); $this->config = $config; } /** * …

Member Avatar for AARTI SHRIVAS
0
2K
Member Avatar for strongard63

this is only for educational purpose. how to gain admin privilege via session cookie if these techniques are useless cookie poisoning attack cookie injection attack session fixation attack cookie hijacking attack ????

Member Avatar for EvolutionFallen
0
143
Member Avatar for laura301019

I'm pretty new to coding with Python and I am trying to save a users username in a session variable which should be a new entry in the session dictionary. The code I have is from bottle import route, request, debug, run, template session={'logins':0} def checkLogin(name,password): if name==password: return True …

Member Avatar for slate
0
371
Member Avatar for renierdbruyn

Hi, I am new to Python and am looking into web development frameworks i.e. Pyramid. Is there anyone here who is familiar with this Framework using MongoDB? I am using pymongo and Ming I follwed a tutorial [here](http://pieceofpy.com/2012/01/10/working-with-pyramid-and-ming/). I am getting an `AttributeError: 'str' object has no attribute '_auto_ensure_indexes'` in …

Member Avatar for renierdbruyn
0
531
Member Avatar for Maideen

Error occured: Procedure .. has too many argument specified I have an issue that when i Update the record there is error "Error occured: Procedure .. has too many argument specified". It is my Store procedure SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER Procedure [dbo].[web_usp_empData_Update] @id bigint, @Code …

Member Avatar for harsh9
0
282
Member Avatar for decade

Hi everyone, I'm a newbie in VB.net I would like to ask if there is a code or equivalent code or script like $_SESSION variable of PHP in VB.Net Thanks;

Member Avatar for JorgeM
0
176
Member Avatar for ambikanair

HI, I need to have a captcha in my jsp page. The captcha code is ready and it works perfectly well when the user enters the value. It reloads the same page if the captcha enterd is wrong. I need to navigate to the next page if the value is …

Member Avatar for shadia.mohamed.9_1
0
220
Member Avatar for muhammad.waleed.9699

this is my code for binding data from data base to text box protected void Page_Load(object sender, EventArgs e) { label.Text = System.DateTime.Now.ToLongDateString(); //// /// date label label.Text = System.DateTime.Now.ToLongDateString(); appSession = (String)Session["applicantEmail"]; lblusername.Text = (String)Session["applicantName"]; lblusernamepic.Text = (String)Session["applicantName"]; String str = " SELECT tblPersonalInfo.firstname, tblPersonalInfo.lastname, tblPersonalInfo.fathername, tblPersonalInfo.country, tblPersonalInfo.city, tblPersonalInfo.phoneno,tblPersonalInfo.mobno, …

Member Avatar for johni700
0
256
Member Avatar for ysaburou

Good morning! I have these VideoChatRTP class I got [here](Good morning! I have these VideoChatRTP class I got here (I just added the main) and an EncodingUtilClass class from here.) (I just added the main) and an EncodingUtilClass class from [here](http://www.java2s.com/Open-Source/Java/6.0-JDK-Modules/java-3d/com/db/media/rtp/EncodingUtil.java.htm). VideoChatRTP.java import javax.media.rtp.*; import javax.media.*; import javax.media.protocol.*; import java.awt.Image; …

0
207
Member Avatar for ysaburou

Good morning! I have these VideoChatRTP class I got [here](http://www.java2s.com/Open-Source/Java/6.0-JDK-Modules/java-3d/com/db/media/rtp/VideoChatRTP.java.htm) (I just added the main and made player static) and an EncodingUtilClass class from [here](http://www.java2s.com/Open-Source/Java/6.0-JDK-Modules/java-3d/com/db/media/rtp/EncodingUtil.java.htm). VideoChatRTP.java import javax.media.rtp.*; import javax.media.*; import javax.media.protocol.*; import java.awt.Image; import java.io.*; import java.net.*; import com.sun.media.ui.*; /** * A RTP over UDP player which will receive …

0
148
Member Avatar for davy_yg

Hello, I am trying to create admin login page. This is what I try so far: controllers/admin/clogin.php <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* Author: Jorge Torres * Description: Login controller class */ class Clogin extends CI_Controller{ function __construct(){ parent::__construct(); } public function index(){ // Load …

Member Avatar for davy_yg
0
336
Member Avatar for mastermind2

Hi Friends Please help me about a session problem, i am unable to find the reson of this issue. I am Developing a matrimonial site for a client : bit.ly/19mFQ8x Problem : users are automatically logout when they click on any page after login, but it is not happning in …

Member Avatar for diafol
0
361
Member Avatar for engrjd91

I am creating an android application .. in my app.. one of the activity contains 2 radio buttons..i have 2 questions for it... 1. How to select only one radio button at a time, what code will be written? 2. How to decrease the size of the radio icon (Circular …

0
114
Member Avatar for lauraroxi

Is it possible/compatible to use Session Types in Java for a cloud-based application using Windows Azure (SDK for Java)?

0
203
Member Avatar for jalmeida

Hi, i need some help if possible. I designed a software on vb 2012 with a local access 2010 database, it runs ok,it add's delete and changes record's. However when i start the software it deletes the added records on the previous session. the software is designed with the dataset's. …

Member Avatar for G_Waddell
0
135
Member Avatar for Shari_1

I'm working on a simple, custom login system where users can make an account and log in. In this system I'm using Sessions to make sure if user is logged in or not. I'm using MVC4 as well with Entity Framework. Right now, I want to make a function where …

Member Avatar for Ketsuekiame
0
140
Member Avatar for fheppell

I'm looking for a way to ensure that zero cookies are created by session, is there any way to do so? The session does not need to be overly secure, it is mainly being used to transfer basic and non-sensetive data inbetween pages. This is on a dedicated ubuntu box …

Member Avatar for fheppell
0
177
Member Avatar for davy_yg

Hello, I have tried to create login page with CI. This is the codes that I have: views/login.php <html> <link href="<?php echo $logincss; ?>" rel="stylesheet" type="text/css" media="screen"> <div id="logoadmin"></div> <div id="loginbox"> <img src="<?php echo $logo2; ?>" width="150"> <br><br> <div id="username"> <br><br> <div id="position"> <?php echo form_open('clogin/process'); echo form_label('Username:&nbsp&nbsp', 'username'); $dataUsername …

Member Avatar for davy_yg
0
228
Member Avatar for Indians

here if user logged information is correct it should show the main page. in that mainpage right top corner i need to show the username, employee id, employee name. here i can get username correctly. but, i did not get employee id and employee name. for example : Name - …

Member Avatar for minitauros
0
729
Member Avatar for Indians

this is my login page coding. my login form html coding and php coding is in same page. now if login successful it will redirect to mainpage.php and then if login failure it will show the error message on same page (login.php). how to do that? i tried something but …

Member Avatar for minitauros
0
11K
Member Avatar for Octavian_1

I have a login scrip (downloaded from the internet) that I have adapted to my database. I However have a problem with linking from the login to a page in my system with details of the user that has logged in. The users table on which the login system is …

Member Avatar for Octavian_1
0
395
Member Avatar for davy_yg

Hello, I basically trying to create a login form that works that will carry me to the admin page after login. This is what I did so far: models/admin/login_model.php <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* Author: Jorge Torres * Description: Login model class */ class …

Member Avatar for LastMitch
0
384
Member Avatar for entities

Hi I am currently searching for entities in this case study and I am hoping to create an entity relationship diagram after I have found all the entities. So far I have managed to come up with the following entities Members Group members Organised club racing Training sessions Boat Design …

Member Avatar for LastMitch
0
256
Member Avatar for Synestic

So I'm making a wishlist but am stuck at joining 2 MySQL tables together. At the moment I'm doing this by using following code: if ($stmt = $mysqli->prepare("SELECT ItemID FROM wishlist WHERE WishlistID = ?")) { $stmt->bind_param("s", $this->ID); $stmt->execute(); $stmt->bind_result($id); while ($product = $stmt->fetch()) { if ($stmt2 = $mysqli2->prepare("SELECT products.name …

Member Avatar for diafol
0
150
Member Avatar for arifkutty

i am learning to build a shopping cart, the problem is every time i hit refresh it automatically increases the quantity for the added item, and even i close the window and run the file again i see my cart there means it does not destroy the session, i will …

Member Avatar for arifkutty
0
1K
Member Avatar for EddiRae

Hello, I am having an issue with the FindControl looking for a textbox in the Insert mode. I am doing this in the ItemCommand. I have a "Copy" button that is on the ReadOnly mode. I then change over to the Insert mode and start working with filling in some …

Member Avatar for EddiRae
0
334
Member Avatar for Navya_1

Hello, I am new to JSP and I have to create a registration form, so when the user fills out all the information and clicks submit, the information should be stored in cookies. I cannot use database to store user information. Also after the user registers, he/she has to login …

Member Avatar for asmira
0
827
Member Avatar for Maideen

hi anybody can tell How can session store in mssql database? How to do SQLServer Session Mode start? Pls help me Maideen

Member Avatar for Maideen
0
173
Member Avatar for Pashan

Hi guys I'm having major issues with this assignment of mine and I cant even figure out where to get started. Any help would be greatly appriciated. I must write a program that outputs that plays the game Hi Lo with a user until they decide to quit. The program …

Member Avatar for Pashan
0
2K
Member Avatar for Anila_1

Hi.. 'm new to PHP so please guide me.. i just want to create a simple yet secure login page with PHP and MySql as db.. The following must be the program flow.. 1.when a user tries to login for the first time it should check whether the user is …

Member Avatar for Clanstrom
0
173
Member Avatar for BadManSam

Hi, when I try to use a SELECT statement in php, I get an error: > Resource id #18 <?php include("include/session.php"); $get = mysql_query("SELECT value FROM settings WHERE id=2"); echo $get; ?> The file session.php contains the database credentials .etc and it's correct. But then when I try to echo …

Member Avatar for Derice
-1
421
Member Avatar for msz900

HY! i have an issue in php session. the issue is that the session work fine in index page but the username can't show in other pages. lohin.php code <?php session_start(); include './header.php'; include 'connection.php'; if(isset($_POST) && count($_POST)>0) { $user = $_POST['username']; $pass = $_POST['password']; $sSQL = "SELECT * FROM …

Member Avatar for jkon
0
307
Member Avatar for turpentyne

I'm trying a simple query to get students that signed up for each possible matching class, and I'm getting a weird result with this,when I print out. If they've signed up a student in one class, and a student in another class, I get the two students printing out fine. …

Member Avatar for diafol
0
211
Member Avatar for diya45

i try to approve documents through dropdownlist... when i select approve/reject/pending then i have submit button when i click on button document will be approve/reject...what should i code on submit button?? here is the code of dropdown protected void DropDownList4_SelectedIndexChanged(object sender, EventArgs e) { DropDownList ddl = sender as DropDownList; …

Member Avatar for LastMitch
0
173
Member Avatar for tieties

can someone maybe explain to me how the reply to property works, i want to give it an email address like this "message.replyto("ReplyAdd")", but it doesnt seemd to work. and the replytolist in the code also dont work i get this error when i put in breakpoint on it "count …

Member Avatar for Begginnerdev
0
246
Member Avatar for xpgon

Hello. I have a problem creating appointments in Outlook with vb.net. Let see... i create the 1º and i see it in my calendar. When i creat the 2º, the 1º deseapear and the 2º appear. When i creat the 3º, the 2º deseapear and the 3º appear. Can you …

0
70
Member Avatar for weeraa

I'm developing an application using ASP.NET + VB.NET. There is a main page and a pop up window. When Click button in main page it is shown pop up and we can add customer details (Name, address, telephone etc..) after click OK in pop up window, It should be closed …

Member Avatar for LastMitch
0
173
Member Avatar for jacob21

Hi, Below code is working for uploading and insertion in database. How below can be done without Without Reloading the Page. <?php session_start(); $userId=3; //stored userid of current login user from session include("../db.php"); //include db part if (isset($_FILES["csv"])) { $uploadedFile = $_FILES["csv"]; $uploadedFileName = $uploadedFile ["name"]; //name of uploaded file …

Member Avatar for JorgeM
0
981
Member Avatar for grafic.web

Hi, i am new in asp.net and i found it quiet difficult... i was programming in classic asp and sql server, but asp.net looks quiet different, specially if i do program in C# .... Than i hase a couple of questions : 1) if i do a form with 2 …

Member Avatar for grafic.web
0
371
Member Avatar for praba_web

i got following errors. my login is working fine at localhost. but it is not working on server. please help me. Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/rnzsnet/public_html/archler.com/demo1/admin/verify_admin.php:22) in /home/rnzsnet/public_html/archler.com/demo1/admin/verify_admin.php on line 38 Warning: session_start() [function.session-start]: Cannot send session cache limiter …

Member Avatar for Bachu
0
155
Member Avatar for james.lu.75491856

import os import web ### Url mappings urls = [ '/', 'index', '/.*','notfound' ] for root, dirs, files in os.walk("C:/Users/James/Desktop/server"): for f in files: u = os.path.join(root,f) u=u.strip("/").strip("\\") ident=u.lstrip("C:/Users/James/Desktop/server").replace("/","slash").replace("\\","SLASH").replace(".","DOT") globals()[ident] = open(u,mode='rb').read() exec(""" class %(classname)s: def GET(self): global %(data)s return %(data)s """%{"classname":ident+"server","data":ident}, globals(), globals()) #create a class as if were …

Member Avatar for james.lu.75491856
0
359
Member Avatar for facarroll

I can read the session.save_path from the remote server at php_info.php. It is set to "no value". I assume that this defaults to /tmp. I understand that in the absence of some other command, this means that session variable files will be saved here. The error message is Warning: session_start() …

Member Avatar for facarroll
0
201
Member Avatar for facarroll

Since my remote server was recently migrated I am receiving an error message generally which goes like this Warning: session_start() [function.session-start]: open(c:/wampserver/tmp/sess_4bkd7oiqmi7298mhikv09447t6, O_RDWR) failed: No such file or directory (2) in /home/safetyte/public_html/portal/woodwork_sub/ws_member_profile.php on line 2 Lines 1 and 2 are <?php session_start(); This message is coming from the remote server …

Member Avatar for Assembly Guy
1
239
Member Avatar for happygeek

While the News International [phone hacking scandal](http://www.guardian.co.uk/media/phone-hacking) that saw the demise of the News of the World newspaper cannot have escaped your attention in the US or UK, news from India concerning the latest 'tumble and clone' developments could leave the mobile phone calls of more than just celebrities at …

Member Avatar for jimmyparker
2
544

The End.