PHP-and-MySQL/C4/Sessions/Khasi

From Script | Spoken-Tutorial
Revision as of 19:39, 4 November 2017 by Meboreen Mary (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Time Narration
00:00 Khublei ngi pdiangsngewbha ia phi sha kane ka jinghikai halor ki php sessions.
00:05 Sessions ki long iasyriem bha bad ki cookies.
00:08 Tangba , sessions ki don tang ka temporary time kata kadei ka expiry time.
00:12 Kin sa shah pyndam mar sien khang ia ka browser bad baroh ki connection sha ka page ki jah noh.
00:19 Te , sessions kim dei kum ki cookies namar ba phim lah ban set ia ka expiry time
00:24 Bad ia ki khlem buh ha kajuh ka rukom.
00:28 Nga mut, ka "id" jong ka session lah ban buh ha ka cookie.
00:34 Lane phi lah ban iohi eiei ha ka browser URL kum kane.
00:40 Ngam kynmaw ia ka kyrteng – kaei re kaei ka iaryngkat bad kidon shibun ki numbers bad ki alphabets ruh kumjuh.
00:47 Te, ki sessions ki iasyriem bha bad ki cookies.
00:50 Tangba , ia ki ym buh slem; tang haduh u user u khang ia ka browser.
00:57 Te ki sessions ki iapher.
01:00 Nyngkong eh, ngi donkam ban declare lane call ia kane ka function ba kyrteng 'session_start()'.
01:09 Mynta, kane ka donkam ban don hajrong jong baroh ki page kiba phi pyndonkam ha ki sessions.
01:14 Te, lada phim don ia kane bad phi pyrshang ban echo ia u session value lane phi pyrshang ban set ia ka session, kan nym treikam.
01:22 Phi donkam ia ka session start code hangne.
01:24 Mynta ngan pyni ia phi ia ka error kaba wan haba phim pyndonkam ia kane, te kynmaw ia ka.
01:30 Ban shna ia ka session ka suk bha.
01:34 Pyndonkam 'dollar underscore SESSION' bad hapoh ki square brackets ai ia ka kyrteng jong ka session.
01:40 Ngan type 'name' bad pyniaryngkat ia une u value sha uei re uei.
01:44 Ka lah ban dei ka string data lane ka data ba dang thoh thymmai.
01:48 Te ka session jong ngi la set hangne.
01:50 To ngin run ia kane ha ka sien banyngkong.
01:53 Te, to ngin refresh.
01:56 Te, khlem jia eiei.
01:58 Ngan comment ia kane ka code kumba nga leh ha ka jonghikai Cookies jong nga.
02:01 Lada phim pat iohi ia katei, sngewbha leh ia ka.
02:04 Kaba bud ngan echo ia u value jong ka session kaba nga la dep set.
02:08 Te kadei 'name'.
02:11 Sngewbha kynmaw ba kane kan ym shah execute.
02:15 Kane kan sa dei pura ka page bathymmai, baroh kaba phi donkam ban tip.
02:19 Tangba hangne ngan shu sdang ia ka session jong nga.
02:21 Nga ioh ia ka session ba kyrteng 'name' kaba la dep buh lypa da ka server jong ngi.
02:26 Te, to ngin refresh bad ngi lah ban iohi ba katei kadei equal to "Alex".
02:29 Te, phi lah ban add ia kane bad kane ka code ha kano kano ka page.
02:33 Te, phi lah ban sdang ia ka session jong phi bad echo ia ka kyrteng jong ka session jong phi ha ka page jong phi katba kane ka dang sdang ha kano kano ka page jong ka session ba mynta jong ka browser.
02:44 Te, kum ka nuksa, lada nga shna ia ka page ba thymmai, pyndap ia ka php code code jong nga hangne bad ong session_start().
02:49 Bad nangta echo ia ka session 'name'.
02:56 Bad ngan save ia kane ha ka 'sessions' folder jong nga kum ka page ba thymmai lane ka 'new dot php'.
03:03 Te, ynda ngi wan phai biang sha ka page jong ngi hangne bad ngi nion hangne, ngi type 'new dot php'.
03:10 Ngi ioh thik ia ujuh u value, wat la ngim nion ha ka juh ka page ba ngi la shna ia ka session, ngi dang lah hi ban access ia ka.
03:18 Tangba, lada nga dei ban khang ia ka browser bad plie biang ia ka, kane ka session kan nym don shuh.
03:25 Kyrmen ka lah shai. Mynta to ngan pyni ia phi kaei kaba jia lada phim buh ia ka session_start() hapoh.
03:31 Phi ioh eiei ba iasyriem bad kane.
03:33 To ngin phai biang bad check ia ka.
03:36 Kaba jia hangne kadei ba ngim ia ioh kano kano ka output namar ngim pat sdang ia ka session jong ngi.
03:44 Haba ngi type 'session_start', phi lah ban iohi ba ngi ioh ia u value jong ngi kum ka output.
03:51 Ka daw ba ngam don ia ka output kadei namar ba ngam don ia ka jait error ba lah report.
03:56 Tangba lada phi don ia ka jait error kaba lah report, nga don ia ka jinghikai halor kata ruh, te phi lah ban ioh ia ka error.
04:06 Te phi lah ban khang ia kane mynta bad ngan pyni ia phi kumno ban 'unset' ia ka session.
04:10 Ki artylli ki lad ban leh ia kane kidei.
04:12 Ka unset bad nangta session ha ki brackets ban unset ia ka session jong ngi.
04:16 Lane pyndonkam lang da ka command kaba pher bha bad kata kadei ka session_destroy().
04:27 Bad ka jingiapher hapdeng kine ki artylli ki commands kadei ka 'sessions_destroy' kan pyndam pura ia ki sessions ba phi don mynta.
04:35 Bad 'unset' kan unset ia kawei ka session.
04:40 Te , ka shong ha kamon jong phi, phi lah ban log out ia u user bad ong session_destroy().
04:46 Kata kan clear ia baroh ki current session variables kiba phi don ha kane ka por.
04:50 Lane lym kumta phi lah ban shu 'unset' ia kawei kaba thikna.
04:53 Te, na ka bynta kiei ba ki sessions ki ai jingmyntoi?
04:55 Lada phi la wan ha ka website bad iohi ia ka box kum Remember me bad phim check ia kane ka box, te phi lah ban pyndonkam ia ki sessions.
05:03 Namar shisien ba ki users' browser ki lah khang, phin sa shah logged out.
05:09 Bad ynda phi wan phai biang sha ka website phin hap ban type biang ia ki jingtip ba bniah kum ka 'user name' bad password jong phi ban login sha ka website.
05:17 Tangba ka pher haba phi pyndonkam ia ki cookies namar phi set ia ka por ba kut – kaba mut ba ka 'username' jong phi kan sa logged in lane kane ka cookie kan sa neh haduh ba phin da rai ban pyndam ia ka.
05:30 Bad ngi hap ban shna ia u code ban pyndam ia ka cookie jong ngi, kumba nga lah pyni ha ka jinghikai 'Cookies'.
05:35 Te kadei shisha ka mon jong phi la phi kwah ban pyndonkam ia ki sessions lane cookies.
05:40 Ki Sessions ki biang na ka bynta shipor, ki Cookies ki biang na ka bynta ka por ba neh slem – ka por ba thikna ba phi kwah ba ka dkhot jong ka data kan neh sah.
05:49 Tangba lada phi lah iaid lyngba jong ka php Project jong nga -'Register and login', phin iohi ba nga pyndonkam ia ki sessions.
05:56 Kane kadei namar ba nga donkam ban pyndonkam ia ki sessions haba nga shna ia ki jinghikai.
06:00 Tangba, phi lah ban shim kano kano ka form jong kane.
06:03 Ka lah ban dei ka cookie, ka lah ban dei ka session, ka dei shisha ka mon jong phi lada phi kwah ban buh ia u user logged in shislem bha ne em.
06:11 Te, lada phi don kino kino ki jingkylli halor kane, long laitluid ban contact ia nga.
06:16 Pynthikna ba phi subscribe sha ka phpacademy.
06:20 Khublei Shibun.Nga i Meboreen na Shillong nga dubbed na ka bynta ka Spoken Tutorial Project.

Contributors and Content Editors

Meboreen Mary